#include <folly/memory/detail/MallocImpl.h>
extern "C" {
#ifdef _MSC_VER
const char* mallocxWeak = nullptr;
const char* rallocxWeak = nullptr;
const char* xallocxWeak = nullptr;
const char* sallocxWeak = nullptr;
const char* dallocxWeak = nullptr;
const char* sdallocxWeak = nullptr;
const char* nallocxWeak = nullptr;
const char* mallctlWeak = nullptr;
const char* mallctlnametomibWeak = nullptr;
const char* mallctlbymibWeak = nullptr;
const char* MallocExtension_Internal_GetNumericPropertyWeak = nullptr;
#elif !FOLLY_HAVE_WEAK_SYMBOLS
#if (!defined(USE_JEMALLOC) && !defined(FOLLY_USE_JEMALLOC)) || FOLLY_SANITIZE
void* (*mallocx)(size_t, int) = …;
void* (*rallocx)(void*, size_t, int) = …;
size_t (*xallocx)(void*, size_t, size_t, int) = …;
size_t (*sallocx)(const void*, int) = …;
void (*dallocx)(void*, int) = …;
void (*sdallocx)(void*, size_t, int) = …;
size_t (*nallocx)(size_t, int) = …;
int (*mallctl)(const char*, void*, size_t*, void*, size_t) = …;
int (*mallctlnametomib)(const char*, size_t*, size_t*) = …;
int (*mallctlbymib)(const size_t*, size_t, void*, size_t*, void*, size_t) = …;
#endif
bool (*MallocExtension_Internal_GetNumericProperty)(
const char*, size_t, size_t*) = …;
#endif
}