Skip to content

Commit 31fb9a8

Browse files
committed
apple: fix existence of std::aligned_alloc
1 parent da87956 commit 31fb9a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/proxsuite/linalg/veg/memory/alloc.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ namespace veg {
2727
#ifdef __APPLE__
2828
namespace alignment {
2929

30-
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101500
30+
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 && \
31+
(defined(_LIBCPP_HAS_ALIGNED_ALLOC) || defined(_LIBCPP_HAS_C11_FEATURES))
3132
VEG_INLINE void*
3233
aligned_alloc(std::size_t alignment, std::size_t size)
3334
{

0 commit comments

Comments
 (0)