#include <features.h> as requested
This commit is contained in:
parent
18510020e7
commit
c91e62dd37
@ -3231,6 +3231,8 @@ je_valloc(size_t size) {
|
|||||||
* passed an extra argument for the caller return address, which will be
|
* passed an extra argument for the caller return address, which will be
|
||||||
* ignored.
|
* ignored.
|
||||||
*/
|
*/
|
||||||
|
#include <features.h> // defines __GLIBC__ if we are compiling against glibc
|
||||||
|
|
||||||
JEMALLOC_EXPORT void (*__free_hook)(void *ptr) = je_free;
|
JEMALLOC_EXPORT void (*__free_hook)(void *ptr) = je_free;
|
||||||
JEMALLOC_EXPORT void *(*__malloc_hook)(size_t size) = je_malloc;
|
JEMALLOC_EXPORT void *(*__malloc_hook)(size_t size) = je_malloc;
|
||||||
JEMALLOC_EXPORT void *(*__realloc_hook)(void *ptr, size_t size) = je_realloc;
|
JEMALLOC_EXPORT void *(*__realloc_hook)(void *ptr, size_t size) = je_realloc;
|
||||||
|
Loading…
Reference in New Issue
Block a user