diff options
author | Daan Leijen <daan@microsoft.com> | 2022-04-19 19:56:53 -0700 |
---|---|---|
committer | Daan Leijen <daan@microsoft.com> | 2022-04-19 19:56:53 -0700 |
commit | cea47b856040f313e03ddb89a55adec21b7c2b07 (patch) | |
tree | 662229ad8b91130df4819140967882e609773d7d | |
parent | 7bc602ebb428f23cc20fb40f6ca218497bc88d98 (diff) |
compile with /Zc:__cplusplus in vs2022
-rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 02bce8d..ab7a5b9 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -107,7 +107,7 @@ mi_decl_nodiscard extern inline mi_decl_restrict void* mi_malloc_small(size_t si } // The main allocation function -mi_decl_nodiscard extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t size, bool zero) mi_attr_noexcept { +extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t size, bool zero) mi_attr_noexcept { if mi_likely(size <= MI_SMALL_SIZE_MAX) { return mi_heap_malloc_small_zero(heap, size, zero); } |