diff options
author | David Robillard <d@drobilla.net> | 2020-07-16 12:01:46 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-17 15:42:20 +0200 |
commit | e0d568242784d82eb8d8591860f9bba9a37c7927 (patch) | |
tree | 590a23291c8eb5146d872a174b05a24dbdec1d99 | |
parent | dcc6cd4fbbb5e1f74473a2cf303d832c7dbe54dc (diff) | |
download | sord-e0d568242784d82eb8d8591860f9bba9a37c7927.tar.gz sord-e0d568242784d82eb8d8591860f9bba9a37c7927.tar.bz2 sord-e0d568242784d82eb8d8591860f9bba9a37c7927.zip |
Modernize compiler version check
Avoids a warning on compilers where __GNUC__ is not defined.
-rw-r--r-- | src/sord_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h index bfe98f6..ddfe9c6 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -22,7 +22,7 @@ #include "sord/sord.h" -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) +#if defined(__GNUC__) && __GNUC__ > 4 # define SORD_UNREACHABLE() __builtin_unreachable() #else # define SORD_UNREACHABLE() assert(false) |