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