types.h: silence some compiler warnings regarding redeclaration of

likely/unlikely
This commit is contained in:
hexcoder- 2020-03-28 13:05:26 +01:00 committed by Dominik Maier
parent ab5e0703da
commit cda56ca129

View File

@ -120,9 +120,13 @@ typedef int64_t s64;
#define likely(_x) (_x)
#define unlikely(_x) (_x)
#else
#ifndef likely
#define likely(_x) __builtin_expect(!!(_x), 1)
#endif
#ifndef unlikely
#define unlikely(_x) __builtin_expect(!!(_x), 0)
#endif
#endif
#endif /* ! _HAVE_TYPES_H */