From 77d148bc55d1f87c5f6eb55e099c72008423a27f Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 30 Sep 2020 21:42:53 +0200 Subject: Exclude funccrypt from non GCC. CLang seems to not support asm goto (yet?!). Signed-off-by: Toni Uhlig --- funccrypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'funccrypt.c') diff --git a/funccrypt.c b/funccrypt.c index 12586b7..e5d8c0b 100644 --- a/funccrypt.c +++ b/funccrypt.c @@ -7,6 +7,14 @@ #include /* 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. */ -- cgit v1.2.3