diff options
author | David Robillard <d@drobilla.net> | 2021-01-01 21:00:41 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-01 21:00:41 +0100 |
commit | 2e376791927e6e061c0c044056cff6c1f768b100 (patch) | |
tree | 19839b4d629c7aa768ce375530c75acbbe3e4ee6 | |
parent | 84ae879837a493df5a8f6a3a73316680ecf6cd15 (diff) | |
download | sord-2e376791927e6e061c0c044056cff6c1f768b100.tar.gz sord-2e376791927e6e061c0c044056cff6c1f768b100.tar.bz2 sord-2e376791927e6e061c0c044056cff6c1f768b100.zip |
Use __builtin_unreachable() with clang
Clang apparently pretends to be GCC 4.2.
-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 0b74bcd..c33dace 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -22,7 +22,7 @@ #include <stddef.h> -#if defined(__GNUC__) && __GNUC__ > 4 +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 4) # define SORD_UNREACHABLE() __builtin_unreachable() #else # include <assert.h> |