Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1146)

Unified Diff: base/compiler_specific.h

Issue 1866473002: Define HAS_FEATURE instead of __has_feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep Mac as-is. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/bit_cast.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « base/bit_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698