summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__debug
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-28 06:15:01 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-28 06:15:01 +0000
commitd5ae0257f23bc96dc0038ade3fbd529127e97ee6 (patch)
tree05381556dedf070626533bd727f240954c781ea5 /libcxx/include/__debug
parent2e519579f7111c5c4383cbf69052b4251ff285bb (diff)
downloadbcm5719-llvm-d5ae0257f23bc96dc0038ade3fbd529127e97ee6.tar.gz
bcm5719-llvm-d5ae0257f23bc96dc0038ade3fbd529127e97ee6.zip
Ensure <__debug> gets the nullptr definition in C++03
llvm-svn: 290658
Diffstat (limited to 'libcxx/include/__debug')
-rw-r--r--libcxx/include/__debug4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/__debug b/libcxx/include/__debug
index 2a457102401..f8c1129a369 100644
--- a/libcxx/include/__debug
+++ b/libcxx/include/__debug
@@ -17,6 +17,10 @@
#pragma GCC system_header
#endif
+#if defined(_LIBCPP_HAS_NO_NULLPTR)
+# include <cstddef>
+#endif
+
#if _LIBCPP_DEBUG_LEVEL >= 1 || defined(_LIBCPP_BUILDING_LIBRARY)
# include <cstdlib>
# include <cstdio>
OpenPOWER on IntegriCloud