Skip to content

Commit 8e242a4

Browse files
authored
Merge pull request #55 from jcarpent/topic/aligned_alloc
Fix existence of std::aligned_alloc on APPLE
2 parents da87956 + 31fb9a8 commit 8e242a4

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)