mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
[libc] Guard common macro names
Differential revision: https://reviews.llvm.org/D127692
This commit is contained in:
parent
6117784c5f
commit
60d4a10710
@ -11,9 +11,15 @@
|
||||
|
||||
#define LIBC_INLINE_ASM __asm__ __volatile__
|
||||
|
||||
#ifndef likely
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#endif
|
||||
#ifndef unlikely
|
||||
#define unlikely(x) __builtin_expect(x, 0)
|
||||
#endif
|
||||
#ifndef UNUSED
|
||||
#define UNUSED __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#ifndef LLVM_LIBC_FUNCTION_ATTR
|
||||
#define LLVM_LIBC_FUNCTION_ATTR
|
||||
|
Loading…
Reference in New Issue
Block a user