mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-16 08:55:37 +03:00
#include <features.h> as requested
This commit is contained in:
parent
18510020e7
commit
c91e62dd37
1 changed files with 2 additions and 0 deletions
|
|
@ -3231,6 +3231,8 @@ je_valloc(size_t size) {
|
|||
* passed an extra argument for the caller return address, which will be
|
||||
* ignored.
|
||||
*/
|
||||
#include <features.h> // defines __GLIBC__ if we are compiling against glibc
|
||||
|
||||
JEMALLOC_EXPORT void (*__free_hook)(void *ptr) = je_free;
|
||||
JEMALLOC_EXPORT void *(*__malloc_hook)(size_t size) = je_malloc;
|
||||
JEMALLOC_EXPORT void *(*__realloc_hook)(void *ptr, size_t size) = je_realloc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue