From 07ef938e3d1da5a79b7be7d948caf999487739f2 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 21 May 2014 23:15:38 +0800 Subject: [PATCH] check jemalloc version --- include/zmalloc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/zmalloc.h b/include/zmalloc.h index c8ef195..eaeb765 100644 --- a/include/zmalloc.h +++ b/include/zmalloc.h @@ -48,14 +48,13 @@ #elif defined(USE_JEMALLOC) #define ZMALLOC_LIB ("jemalloc-" __xstr(JEMALLOC_VERSION_MAJOR) "." __xstr(JEMALLOC_VERSION_MINOR) "." __xstr(JEMALLOC_VERSION_BUGFIX)) #include -/* -#if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2) +// #if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2) +#if JEMALLOC_VERSION_MAJOR > 2 #define HAVE_MALLOC_SIZE 1 #define zmalloc_size(p) je_malloc_usable_size(p) #else #error "Newer version of jemalloc required" #endif -*/ #elif defined(__APPLE__) #include