Skip to content

Commit 452acb8

Browse files
committed
[libc++] Assume __STDCPP_DEFAULT_NEW_ALIGNMENT__ is available
1 parent b060022 commit 452acb8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libcxx/include/__new/allocate.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define _LIBCPP___NEW_ALLOCATE_H
1111

1212
#include <__config>
13-
#include <__cstddef/max_align_t.h>
1413
#include <__cstddef/size_t.h>
1514
#include <__new/align_val_t.h>
1615
#include <__new/global_new_delete.h> // for _LIBCPP_HAS_SIZED_DEALLOCATION
@@ -24,11 +23,7 @@
2423
_LIBCPP_BEGIN_NAMESPACE_STD
2524

2625
_LIBCPP_CONSTEXPR inline _LIBCPP_HIDE_FROM_ABI bool __is_overaligned_for_new(size_t __align) _NOEXCEPT {
27-
#ifdef __STDCPP_DEFAULT_NEW_ALIGNMENT__
2826
return __align > __STDCPP_DEFAULT_NEW_ALIGNMENT__;
29-
#else
30-
return __align > _LIBCPP_ALIGNOF(max_align_t);
31-
#endif
3227
}
3328

3429
template <class... _Args>

0 commit comments

Comments
 (0)