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

Unified Diff: util/stdlib/cxx.h

Issue 803273002: win: set CXX_LIBRARY_VERSION to 2011 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: to CXX_LIBRARY_HAS_CONSTEXR Created 6 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 | « no previous file | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/stdlib/cxx.h
diff --git a/util/stdlib/cxx.h b/util/stdlib/cxx.h
index 261a6c11239fbc3e365ba2bb7783ce76b3e78b7f..0e1cc4350f28b4ce2283133d670dec9daecd7b0c 100644
--- a/util/stdlib/cxx.h
+++ b/util/stdlib/cxx.h
@@ -15,6 +15,15 @@
#ifndef CRASHPAD_UTIL_STDLIB_CXX_H_
#define CRASHPAD_UTIL_STDLIB_CXX_H_
+#include "build/build_config.h"
+
+#if defined(COMPILER_MSVC)
+
+#define CXX_LIBRARY_VERSION 2011
+#define CXX_LIBRARY_HAS_CONSTEXPR 0
+
+#else // !COMPILER_MSVC
+
// <ciso646> doesn’t do very much, and under libc++, it will cause the
// _LIBCPP_VERSION macro to be defined properly. Under libstdc++, it doesn’t
// cause __GLIBCXX__ to be defined, but if _LIBCPP_VERSION isn’t defined after
@@ -50,8 +59,12 @@
__GLIBCXX__ != 20120702ul) || /* GCC 4.5.4 */ \
(defined(_LIBCPP_VERSION)))
#define CXX_LIBRARY_VERSION 2011
+#define CXX_LIBRARY_HAS_CONSTEXPR 1
#else
#define CXX_LIBRARY_VERSION 2003
+#define CXX_LIBRARY_HAS_CONSTEXPR 0
#endif
+#endif // COMPILER_MSVC
+
#endif // CRASHPAD_UTIL_STDLIB_CXX_H_
« no previous file with comments | « no previous file | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698