diff options
-rw-r--r-- | common/almalloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/almalloc.h b/common/almalloc.h index 58bd5eed..e0847eb1 100644 --- a/common/almalloc.h +++ b/common/almalloc.h @@ -13,9 +13,11 @@ #include "pragmadefs.h" -[[gnu::alloc_align(1), gnu::alloc_size(2)]] void *al_malloc(size_t alignment, size_t size); -[[gnu::alloc_align(1), gnu::alloc_size(2)]] void *al_calloc(size_t alignment, size_t size); void al_free(void *ptr) noexcept; +[[gnu::alloc_align(1), gnu::alloc_size(2), gnu::malloc]] +void *al_malloc(size_t alignment, size_t size); +[[gnu::alloc_align(1), gnu::alloc_size(2), gnu::malloc]] +void *al_calloc(size_t alignment, size_t size); #define DISABLE_ALLOC() \ |