aboutsummaryrefslogtreecommitdiff
path: root/contrib/libc++/include/cstddef
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libc++/include/cstddef')
-rw-r--r--contrib/libc++/include/cstddef11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/libc++/include/cstddef b/contrib/libc++/include/cstddef
index 7ef16ff2a367..c3ca64a9c014 100644
--- a/contrib/libc++/include/cstddef
+++ b/contrib/libc++/include/cstddef
@@ -35,12 +35,6 @@ Types:
#include <__config>
-#ifdef __GLIBC__
-#define __need_NULL
-#define __need_ptrdiff_t
-#define __need_size_t
-#endif // __GLIBC__
-
#include <stddef.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -52,7 +46,12 @@ _LIBCPP_BEGIN_NAMESPACE_STD
using ::ptrdiff_t;
using ::size_t;
+#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T)
+// Re-use the compiler's <stddef.h> max_align_t where possible.
+using ::max_align_t;
+#else
typedef long double max_align_t;
+#endif
#ifdef _LIBCPP_HAS_NO_NULLPTR