Changeset View
Changeset View
Standalone View
Standalone View
intern/guardedalloc/intern/mallocn_intern.h
| Show All 11 Lines | |||||
| # define UNUSED(x) UNUSED_##x __attribute__((__unused__)) | # define UNUSED(x) UNUSED_##x __attribute__((__unused__)) | ||||
| #else | #else | ||||
| # define UNUSED(x) UNUSED_##x | # define UNUSED(x) UNUSED_##x | ||||
| #endif | #endif | ||||
| #undef HAVE_MALLOC_STATS | #undef HAVE_MALLOC_STATS | ||||
| #define USE_MALLOC_USABLE_SIZE /* internal, when we have malloc_usable_size() */ | #define USE_MALLOC_USABLE_SIZE /* internal, when we have malloc_usable_size() */ | ||||
| #if defined(__linux__) || (defined(__FreeBSD_kernel__) && !defined(__FreeBSD__)) || \ | #if defined(HAVE_MALLOC_STATS_H) | ||||
| defined(__GLIBC__) | |||||
| # include <malloc.h> | # include <malloc.h> | ||||
| # define HAVE_MALLOC_STATS | # define HAVE_MALLOC_STATS | ||||
| #elif defined(__FreeBSD__) | #elif defined(__FreeBSD__) | ||||
| # include <malloc_np.h> | # include <malloc_np.h> | ||||
| #elif defined(__APPLE__) | #elif defined(__APPLE__) | ||||
| # include <malloc/malloc.h> | # include <malloc/malloc.h> | ||||
| # define malloc_usable_size malloc_size | # define malloc_usable_size malloc_size | ||||
| #elif defined(WIN32) | #elif defined(WIN32) | ||||
| ▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines | |||||