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

Unified Diff: base/compiler_specific.h

Issue 1837563002: bit_cast: check is_trivially_copyable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix __has_feature Created 4 years, 9 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 339e9b74e9c2ce4a22704f922134f5badd48b3e1..1667d731ab1985c76949179cb9f3be0b7952aab5 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -187,4 +187,10 @@
#endif // defined(COMPILER_GCC)
#endif // !defined(UNLIKELY)
+// Compiler feature-detection.
+// http://clang.llvm.org/docs/LanguageExtensions.html
+#if !defined(__has_feature)
+#define __has_feature(FEATURE) 0
Nico 2016/04/05 18:43:38 Hm, names starting with __ are reserved for the im
+#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