File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include <stdlib.h>
7
7
8
- #if defined(__cplusplus ) && (__cplusplus >= 201703L )
9
- # define HAVE_ALIGNED_ALLOC 1
8
+ #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ ) && \
9
+ __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500
10
+ # define MACOS_VERSION_AT_LEAST_10_15 1
11
+ #else
12
+ # define MACOS_VERSION_AT_LEAST_10_15 0
10
13
#endif
11
14
12
- #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ ) && \
13
- __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101500
14
- # define HAVE_ALIGNED_ALLOC 0
15
+ #if defined(__cplusplus ) && ( __cplusplus >= 201703L ) && \
16
+ (!defined( __apple__ ) || MACOS_VERSION_AT_LEAST_10_15 )
17
+ # define HAVE_ALIGNED_ALLOC 1
15
18
#else
19
+ # define HAVE_ALIGNED_ALLOC 0
16
20
#endif
17
21
18
22
int * mem ;
You can’t perform that action at this time.
0 commit comments