aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/stddef.h')
-rw-r--r--libcxx/include/stddef.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libcxx/include/stddef.h b/libcxx/include/stddef.h
index 13944ef8a851..19e344f2a000 100644
--- a/libcxx/include/stddef.h
+++ b/libcxx/include/stddef.h
@@ -11,7 +11,7 @@
defined(__need_wchar_t) || defined(__need_NULL) || defined(__need_wint_t)
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
-#pragma GCC system_header
+# pragma GCC system_header
#endif
#include_next <stddef.h>
@@ -39,18 +39,13 @@ Types:
#include <__config>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
-#pragma GCC system_header
+# pragma GCC system_header
#endif
#include_next <stddef.h>
#ifdef __cplusplus
-
-extern "C++" {
-#include <__nullptr>
-using std::nullptr_t;
-}
-
+ typedef decltype(nullptr) nullptr_t;
#endif
#endif // _LIBCPP_STDDEF_H