improve mem_allocator_std

This commit is contained in:
lixianjing 2021-06-02 16:10:51 +08:00
parent f5a3897dd0
commit e428a631e8

View File

@ -24,6 +24,7 @@
#include "tkc/mem_allocator.h"
#ifdef WITH_SDL
#ifdef MACOS
#include <malloc/malloc.h>
#define msize(ptr) malloc_size(ptr)
@ -35,6 +36,9 @@
#elif !defined(msize)
#define msize(ptr) 0
#endif
#else
#define msize(ptr) 0
#endif
BEGIN_C_DECLS