1*8e33eff8Schristos /* include/jemalloc/jemalloc_defs.h. Generated from jemalloc_defs.h.in by configure. */ 2*8e33eff8Schristos /* Defined if __attribute__((...)) syntax is supported. */ 3*8e33eff8Schristos #define JEMALLOC_HAVE_ATTR 4*8e33eff8Schristos 5*8e33eff8Schristos /* Defined if alloc_size attribute is supported. */ 6*8e33eff8Schristos #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE 7*8e33eff8Schristos 8*8e33eff8Schristos #ifndef __clang__ 9*8e33eff8Schristos /* Defined if format(gnu_printf, ...) attribute is supported. */ 10*8e33eff8Schristos #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF 11*8e33eff8Schristos #endif 12*8e33eff8Schristos 13*8e33eff8Schristos /* Defined if format(printf, ...) attribute is supported. */ 14*8e33eff8Schristos #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF 15*8e33eff8Schristos 16*8e33eff8Schristos /* 17*8e33eff8Schristos * Define overrides for non-standard allocator-related functions if they are 18*8e33eff8Schristos * present on the system. 19*8e33eff8Schristos */ 20*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE_MEMALIGN */ 21*8e33eff8Schristos #define JEMALLOC_OVERRIDE_VALLOC 22*8e33eff8Schristos 23*8e33eff8Schristos /* 24*8e33eff8Schristos * At least Linux omits the "const" in: 25*8e33eff8Schristos * 26*8e33eff8Schristos * size_t malloc_usable_size(const void *ptr); 27*8e33eff8Schristos * 28*8e33eff8Schristos * Match the operating system's prototype. 29*8e33eff8Schristos */ 30*8e33eff8Schristos #define JEMALLOC_USABLE_SIZE_CONST const 31*8e33eff8Schristos 32*8e33eff8Schristos /* 33*8e33eff8Schristos * If defined, specify throw() for the public function prototypes when compiling 34*8e33eff8Schristos * with C++. The only justification for this is to match the prototypes that 35*8e33eff8Schristos * glibc defines. 36*8e33eff8Schristos */ 37*8e33eff8Schristos /* #undef JEMALLOC_USE_CXX_THROW */ 38*8e33eff8Schristos 39*8e33eff8Schristos #ifdef _MSC_VER 40*8e33eff8Schristos # ifdef _WIN64 41*8e33eff8Schristos # define LG_SIZEOF_PTR_WIN 3 42*8e33eff8Schristos # else 43*8e33eff8Schristos # define LG_SIZEOF_PTR_WIN 2 44*8e33eff8Schristos # endif 45*8e33eff8Schristos #endif 46*8e33eff8Schristos 47*8e33eff8Schristos /* sizeof(void *) == 2^LG_SIZEOF_PTR. */ 48*8e33eff8Schristos #ifdef _LP64 49*8e33eff8Schristos #define LG_SIZEOF_PTR 3 50*8e33eff8Schristos #else 51*8e33eff8Schristos #define LG_SIZEOF_PTR 2 52*8e33eff8Schristos #endif 53