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