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