aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/c++11-compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/c++11-compat.h b/common/c++11-compat.h
index 14e0642821..9fd252cc67 100644
--- a/common/c++11-compat.h
+++ b/common/c++11-compat.h
@@ -32,13 +32,17 @@
// though.
//
#if !defined(nullptr) // XCode 5.0.1 has __cplusplus=199711 but defines this
+#if !defined(_MSC_VER) || _MSC_VER < 1600
#define nullptr 0
#endif
+#endif
//
// Replacement for the override keyword. This allows compilation of code
// which uses it, but does not feature any semantic.
//
+#if !defined(_MSC_VER) || _MSC_VER < 1700
#define override
+#endif
#endif