summaryrefslogtreecommitdiffstats
path: root/src/sord_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-01 21:00:41 +0100
committerDavid Robillard <d@drobilla.net>2021-01-01 21:00:41 +0100
commit2e376791927e6e061c0c044056cff6c1f768b100 (patch)
tree19839b4d629c7aa768ce375530c75acbbe3e4ee6 /src/sord_internal.h
parent84ae879837a493df5a8f6a3a73316680ecf6cd15 (diff)
downloadsord-2e376791927e6e061c0c044056cff6c1f768b100.tar.gz
sord-2e376791927e6e061c0c044056cff6c1f768b100.tar.bz2
sord-2e376791927e6e061c0c044056cff6c1f768b100.zip
Use __builtin_unreachable() with clang
Clang apparently pretends to be GCC 4.2.
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r--src/sord_internal.h2
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>