diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/alloc.c b/src/alloc.c index f0e9f208ca3..ca86a84b06d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1126,21 +1126,12 @@ lisp_free (void *block) | |||
| 1126 | unexmacosx.c, so don't use it on Darwin. */ | 1126 | unexmacosx.c, so don't use it on Darwin. */ |
| 1127 | 1127 | ||
| 1128 | #if ! ADDRESS_SANITIZER && !defined DARWIN_OS | 1128 | #if ! ADDRESS_SANITIZER && !defined DARWIN_OS |
| 1129 | # if !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC | 1129 | # if (defined HAVE_ALIGNED_ALLOC \ |
| 1130 | || (defined HYBRID_MALLOC \ | ||
| 1131 | ? defined HAVE_POSIX_MEMALIGN \ | ||
| 1132 | : !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC)) | ||
| 1130 | # define USE_ALIGNED_ALLOC 1 | 1133 | # define USE_ALIGNED_ALLOC 1 |
| 1131 | # ifndef HAVE_ALIGNED_ALLOC | 1134 | # elif !defined HYBRID_MALLOC && defined HAVE_POSIX_MEMALIGN |
| 1132 | /* Defined in gmalloc.c. */ | ||
| 1133 | void *aligned_alloc (size_t, size_t); | ||
| 1134 | # endif | ||
| 1135 | # elif defined HYBRID_MALLOC | ||
| 1136 | # if defined HAVE_ALIGNED_ALLOC || defined HAVE_POSIX_MEMALIGN | ||
| 1137 | # define USE_ALIGNED_ALLOC 1 | ||
| 1138 | # endif | ||
| 1139 | # elif !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC | ||
| 1140 | # define USE_ALIGNED_ALLOC 1 | ||
| 1141 | # elif defined HAVE_ALIGNED_ALLOC | ||
| 1142 | # define USE_ALIGNED_ALLOC 1 | ||
| 1143 | # elif defined HAVE_POSIX_MEMALIGN | ||
| 1144 | # define USE_ALIGNED_ALLOC 1 | 1135 | # define USE_ALIGNED_ALLOC 1 |
| 1145 | static void * | 1136 | static void * |
| 1146 | aligned_alloc (size_t alignment, size_t size) | 1137 | aligned_alloc (size_t alignment, size_t size) |