File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ terms of the MIT license. A copy of the license can be found in the file
16
16
#if defined(MI_MALLOC_OVERRIDE ) && !(defined(_WIN32 ))
17
17
18
18
#if defined(__APPLE__ )
19
+ #include <AvailabilityMacros.h>
19
20
mi_decl_externc void vfree (void * p );
20
21
mi_decl_externc size_t malloc_size (const void * p );
21
22
mi_decl_externc size_t malloc_good_size (size_t size );
@@ -77,7 +78,9 @@ typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t;
77
78
MI_INTERPOSE_MI (valloc ),
78
79
MI_INTERPOSE_MI (malloc_size ),
79
80
MI_INTERPOSE_MI (malloc_good_size ),
81
+ #if defined(MAC_OS_X_VERSION_10_15 ) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_15
80
82
MI_INTERPOSE_MI (aligned_alloc ),
83
+ #endif
81
84
#ifdef MI_OSX_ZONE
82
85
// we interpose malloc_default_zone in alloc-override-osx.c so we can use mi_free safely
83
86
MI_INTERPOSE_MI (free ),
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
195
195
#elif defined(__APPLE__)
196
196
#include <AvailabilityMacros.h>
197
197
#if defined(MAC_OS_X_VERSION_10_10 ) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10
198
+ #include <CommonCrypto/CommonCryptoError.h>
198
199
#include <CommonCrypto/CommonRandom.h>
199
200
#endif
200
201
static bool os_random_buf (void * buf , size_t buf_len ) {
You can’t perform that action at this time.
0 commit comments