diff --git a/runtime/caml/misc.h b/runtime/caml/misc.h index 1b774f16f85c..7c651b564145 100644 --- a/runtime/caml/misc.h +++ b/runtime/caml/misc.h @@ -280,7 +280,7 @@ CAMLnoret CAMLextern void caml_failed_assert (char *, char_os *, int); #define CAMLassert(x) ((void) 0) #endif -#if __has_builtin(__builtin_trap) +#if __has_builtin(__builtin_trap) || defined(__GNUC__) #define CAMLunreachable() (__builtin_trap()) #elif defined(_MSC_VER) #include