mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 11:06:46 +00:00
qemu/compiler: Add fallback macro for __has_builtin
Prevents compilation errors on non-clang compilers.
This commit is contained in:
parent
cfd84d84f6
commit
b17d2d4059
|
@ -14,6 +14,10 @@
|
|||
#define __has_attribute(x) 0 /* compatibility with older GCC */
|
||||
#endif
|
||||
|
||||
#ifndef __has_builtin // Optional of course.
|
||||
#define __has_builtin(x) 0 // Compatibility with non-clang compilers.
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If __attribute__((error)) is present, use it to produce an error at
|
||||
* compile time. Otherwise, one must wait for the linker to diagnose
|
||||
|
|
Loading…
Reference in a new issue