Ensure <__debug> gets the nullptr definition in C++03
llvm-svn: 290658
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: d5ae0257f23bc96dc0038ade3fbd529127e97ee6
diff --git a/include/__debug b/include/__debug
index 2a45710..f8c1129 100644
--- a/include/__debug
+++ b/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>