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