提交 cc6ea308 编写于 作者: B Behdad Esfahbod

Extern "C" custom-allocator declerations

上级 98c6fccc
......@@ -60,10 +60,10 @@
&& defined(hb_calloc_impl) \
&& defined(hb_realloc_impl) \
&& defined(hb_free_impl)
extern void* hb_malloc_impl(size_t size);
extern void* hb_calloc_impl(size_t nmemb, size_t size);
extern void* hb_realloc_impl(void *ptr, size_t size);
extern void hb_free_impl(void *ptr);
extern "C" void* hb_malloc_impl(size_t size);
extern "C" void* hb_calloc_impl(size_t nmemb, size_t size);
extern "C" void* hb_realloc_impl(void *ptr, size_t size);
extern "C" void hb_free_impl(void *ptr);
#define malloc hb_malloc_impl
#define calloc hb_calloc_impl
#define realloc hb_realloc_impl
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册