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