aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-27 11:06:22 +0300
committerEugene Sandulenko2013-09-27 11:06:22 +0300
commite11da512025be5c00390d4822e8d70c1d5fc5749 (patch)
tree19805865e0c2b23a34c32c721fc945fa1e568bf6
parent987bb6d454a89fb1b2469303d7cb6c65b88d16a3 (diff)
downloadscummvm-rg350-e11da512025be5c00390d4822e8d70c1d5fc5749.tar.gz
scummvm-rg350-e11da512025be5c00390d4822e8d70c1d5fc5749.tar.bz2
scummvm-rg350-e11da512025be5c00390d4822e8d70c1d5fc5749.zip
COMMON: Make Coverity 6.6.1 happier
Apparently their tools do not include __has_feature clang extension. I've submitted the bugreport to them but in the meantime let's have this define in the system.
-rw-r--r--common/scummsys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 3e9d5ef063..b15a76e5b9 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -23,6 +23,10 @@
#ifndef COMMON_SCUMMSYS_H
#define COMMON_SCUMMSYS_H
+#ifndef __has_feature // Optional of course.
+ #define __has_feature(x) 0 // Compatibility with non-clang compilers.
+#endif
+
// This is a convenience macro to test whether the compiler used is a GCC
// version, which is at least major.minor.
#define GCC_ATLEAST(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))