diff options
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/platform/compiler.h b/src/mongo/platform/compiler.h index ba74feb862d..faf1c72ec1e 100644 --- a/src/mongo/platform/compiler.h +++ b/src/mongo/platform/compiler.h @@ -195,3 +195,9 @@ #else #error "Unsupported compiler family" #endif + +// Define clang's has_feature macro for other compilers +// See https://clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension +#if !defined(__has_feature) +#define __has_feature(x) 0 +#endif |