mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-07 07:41:33 +00:00
types.h: silence some compiler warnings regarding redeclaration of
likely/unlikely
This commit is contained in:
parent
ab5e0703da
commit
cda56ca129
@ -120,9 +120,13 @@ typedef int64_t s64;
|
|||||||
#define likely(_x) (_x)
|
#define likely(_x) (_x)
|
||||||
#define unlikely(_x) (_x)
|
#define unlikely(_x) (_x)
|
||||||
#else
|
#else
|
||||||
|
#ifndef likely
|
||||||
#define likely(_x) __builtin_expect(!!(_x), 1)
|
#define likely(_x) __builtin_expect(!!(_x), 1)
|
||||||
|
#endif
|
||||||
|
#ifndef unlikely
|
||||||
#define unlikely(_x) __builtin_expect(!!(_x), 0)
|
#define unlikely(_x) __builtin_expect(!!(_x), 0)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ! _HAVE_TYPES_H */
|
#endif /* ! _HAVE_TYPES_H */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user