Simplify check

This commit is contained in:
Sebastian Ramacher 2018-10-02 01:32:08 +02:00
parent 9f19b843f9
commit 4fd6736a27

View File

@ -5,12 +5,8 @@
#include "macros.h"
#include <stdbool.h>
#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