diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 2d8f507..296b2fd 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -113,6 +113,10 @@ #define GCC_FMT_ATTR(n, m) #endif +#ifndef __has_warning +#define __has_warning(x) 0 /* compatibility with non-clang compilers */ +#endif + #ifndef __has_feature #define __has_feature(x) 0 /* compatibility with non-clang compilers */ #endif |