diff --git a/zathura/checked-integer-arithmetic.h b/zathura/checked-integer-arithmetic.h index e2fb2e8..da7debe 100644 --- a/zathura/checked-integer-arithmetic.h +++ b/zathura/checked-integer-arithmetic.h @@ -5,12 +5,8 @@ #include "macros.h" #include -#if __GNUC__ >= 5 +#if __GNUC__ >= 5 || __has_builtin(__builtin_add_overflow) #define HAVE_BUILTIN -#elif defined(__clang__) -#if __has_builtin(__builtin_add_overflow) -#define HAVE_BUILTIN -#endif #endif #ifdef __cplusplus