[libcxx] r290658 - Ensure <__debug> gets the nullptr definition in C++03

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 27 22:15:02 PST 2016


Author: ericwf
Date: Wed Dec 28 00:15:01 2016
New Revision: 290658

URL: http://llvm.org/viewvc/llvm-project?rev=290658&view=rev
Log:
Ensure <__debug> gets the nullptr definition in C++03

Modified:
    libcxx/trunk/include/__debug

Modified: libcxx/trunk/include/__debug
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__debug?rev=290658&r1=290657&r2=290658&view=diff
==============================================================================
--- libcxx/trunk/include/__debug (original)
+++ libcxx/trunk/include/__debug Wed Dec 28 00:15:01 2016
@@ -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>




More information about the cfe-commits mailing list