Index: base/compiler_specific.h |
diff --git a/base/compiler_specific.h b/base/compiler_specific.h |
index 1667d731ab1985c76949179cb9f3be0b7952aab5..17e1f688419a8b1b8c1d104c1f3fcd5b8ddf7566 100644 |
--- a/base/compiler_specific.h |
+++ b/base/compiler_specific.h |
@@ -188,9 +188,11 @@ |
#endif // !defined(UNLIKELY) |
// Compiler feature-detection. |
-// http://clang.llvm.org/docs/LanguageExtensions.html |
-#if !defined(__has_feature) |
-#define __has_feature(FEATURE) 0 |
+// clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension |
+#if defined(__has_feature) |
+#define HAS_FEATURE(FEATURE) __has_feature(FEATURE) |
+#else |
+#define HAS_FEATURE(FEATURE) 0 |
#endif |
#endif // BASE_COMPILER_SPECIFIC_H_ |