qemu/compiler: Add fallback macro for __has_builtin

Prevents compilation errors on non-clang compilers.
This commit is contained in:
Lioncash 2019-01-22 19:02:46 -05:00
parent cfd84d84f6
commit b17d2d4059
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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