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

Unified Diff: build/build_config.h

Issue 11411318: DO NOT COMMIT: NullPtr support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP Created 8 years 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/nullptr_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/build_config.h
diff --git a/build/build_config.h b/build/build_config.h
index 462518d26d6d5988ad6533e864c5674c8de31cad..ff3cf848ba25a60ff6f4c844d0e2ce52078630c6 100644
--- a/build/build_config.h
+++ b/build/build_config.h
@@ -151,4 +151,18 @@
#define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
#endif
+#if defined(__clang__)
+#if __has_feature(cxx_nullptr)
+#define NULLPTR_IS_NATIVE_TYPE 1
+#endif
+#elif defined(COMPILER_MSVC) && _MSC_VER >= 1600 && defined(_NATIVE_NULLPTR_SUPPORTED)
+#define NULLPTR_IS_NATIVE_TYPE 1
+#elif defined(COMPILER_GCC)
+#if GCC_VERSION_AT_LEAST(4, 7, 0) && defined(__cplusplus) && __cplusplus >= 201103L
+#define NULLPTR_IS_NATIVE_TYPE 1
+#elif GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)
+#define NULLPTR_IS_NATIVE_TYPE 1
+#endif
+#endif
+
#endif // BUILD_BUILD_CONFIG_H_
« no previous file with comments | « base/nullptr_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698