aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-30 21:42:53 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-30 21:42:53 +0200
commit77d148bc55d1f87c5f6eb55e099c72008423a27f (patch)
treed056d3492372d18d1d5252e0fefba7e8401447d6
parent1415e02e405089ab28b1db16979921dceba8fb95 (diff)
Exclude funccrypt from non GCC. CLang seems to not support asm goto (yet?!).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--funccrypt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/funccrypt.c b/funccrypt.c
index 12586b7..e5d8c0b 100644
--- a/funccrypt.c
+++ b/funccrypt.c
@@ -7,6 +7,14 @@
#include <sys/mman.h> /* PROT_* */
+#ifndef __GNUC__
+#error "Unknown compiler; Only GCC supports `asm goto'."
+#endif
+
+#ifdef __clang__
+#error "CLang does not support `asm goto' (yet?)."
+#endif
+
/* Force GCC struct for MingW compilers and pack them,
* which means the struct is 1-byte aligned.
*/