Commit 4fd6736a authored by Sebastian Ramacher's avatar Sebastian Ramacher

Simplify check

parent 9f19b843
...@@ -5,12 +5,8 @@ ...@@ -5,12 +5,8 @@
#include "macros.h" #include "macros.h"
#include <stdbool.h> #include <stdbool.h>
#if __GNUC__ >= 5 #if __GNUC__ >= 5 || __has_builtin(__builtin_add_overflow)
#define HAVE_BUILTIN #define HAVE_BUILTIN
#elif defined(__clang__)
#if __has_builtin(__builtin_add_overflow)
#define HAVE_BUILTIN
#endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment