X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0d5f4ba7cde2efa859a5ea04d59079b5909d537a..a23a5b6c7de0f4fdb22b0d06b06e038004d48546:/src/zmalloc.h diff --git a/src/zmalloc.h b/src/zmalloc.h index ff555619..89f5b6ee 100644 --- a/src/zmalloc.h +++ b/src/zmalloc.h @@ -47,11 +47,10 @@ #elif defined(USE_JEMALLOC) #define ZMALLOC_LIB ("jemalloc-" __xstr(JEMALLOC_VERSION_MAJOR) "." __xstr(JEMALLOC_VERSION_MINOR) "." __xstr(JEMALLOC_VERSION_BUGFIX)) -#define JEMALLOC_MANGLE #include #if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2) #define HAVE_MALLOC_SIZE 1 -#define zmalloc_size(p) JEMALLOC_P(malloc_usable_size)(p) +#define zmalloc_size(p) je_malloc_usable_size(p) #else #error "Newer version of jemalloc required" #endif