aboutsummaryrefslogtreecommitdiff
path: root/common/c++11-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/c++11-compat.h')
-rw-r--r--common/c++11-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/c++11-compat.h b/common/c++11-compat.h
index 50d79bd79e..f963ba9ac8 100644
--- a/common/c++11-compat.h
+++ b/common/c++11-compat.h
@@ -31,7 +31,9 @@
// Custom nullptr replacement. This is not type safe as the real C++11 nullptr
// though.
//
+#if !defined(nullptr) // XCode 5.0.1 has __cplusplus=199711 but defines this
#define nullptr 0
+#endif
//
// Replacement for the override keyword. This allows compilation of code