From 6cc0ad72fc28bde53783b2dd246a86c6efb9943d Mon Sep 17 00:00:00 2001 From: Daan Date: Sat, 4 Mar 2023 09:58:02 -0800 Subject: [PATCH] match declaration of mi_malloc_size_checked on macOS --- src/alloc-override.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc-override.c b/src/alloc-override.c index 84a0d19d..40098ac5 100644 --- a/src/alloc-override.c +++ b/src/alloc-override.c @@ -57,7 +57,7 @@ typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t; // functions that are interposed (or the interposing does not work) #define MI_OSX_IS_INTERPOSED - mi_decl_externc static size_t mi_malloc_size_checked(void *p) { + mi_decl_externc size_t mi_malloc_size_checked(void *p) { if (!mi_is_in_heap_region(p)) return 0; return mi_usable_size(p); }