aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index c52506f8e..74f694f88 100644
--- a/config.h.in
+++ b/config.h.in
@@ -444,6 +444,12 @@ extern uint64_t ottery_rand_uint64(void);
#define RSPAMD_CONST_FUNCTION
#endif
+#ifdef __GNUC__
+#define RSPAMD_UNREACHABLE __builtin_unreachable()
+#else
+#define RSPAMD_UNREACHABLE abort()
+#endif
+
#define HAVE_OPENSSL 1
#define HAVE_MATH_H 1