#ifdef PARTITION_ALLOC_SHIM_ALLOCATOR_SHIM_OVERRIDE_LIBC_SYMBOLS_H_
#error This header is meant to be included only once by allocator_shim.cc
#endif
#ifndef PARTITION_ALLOC_SHIM_ALLOCATOR_SHIM_OVERRIDE_LIBC_SYMBOLS_H_
#define PARTITION_ALLOC_SHIM_ALLOCATOR_SHIM_OVERRIDE_LIBC_SYMBOLS_H_
#include "partition_alloc/buildflags.h"
#if PA_BUILDFLAG(USE_ALLOCATOR_SHIM)
#include "partition_alloc/build_config.h"
#if PA_BUILDFLAG(IS_APPLE)
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#include "partition_alloc/shim/allocator_shim_internals.h"
extern "C" {
SHIM_ALWAYS_EXPORT void* malloc(size_t size) __THROW { … }
SHIM_ALWAYS_EXPORT void free(void* ptr) __THROW { … }
SHIM_ALWAYS_EXPORT void* realloc(void* ptr, size_t size) __THROW { … }
SHIM_ALWAYS_EXPORT void* calloc(size_t n, size_t size) __THROW { … }
SHIM_ALWAYS_EXPORT void cfree(void* ptr) __THROW { … }
SHIM_ALWAYS_EXPORT void* memalign(size_t align, size_t s) __THROW { … }
SHIM_ALWAYS_EXPORT void* aligned_alloc(size_t align, size_t s) __THROW { … }
SHIM_ALWAYS_EXPORT void* valloc(size_t size) __THROW { … }
SHIM_ALWAYS_EXPORT void* pvalloc(size_t size) __THROW { … }
SHIM_ALWAYS_EXPORT int posix_memalign(void** r, size_t a, size_t s) __THROW { … }
SHIM_ALWAYS_EXPORT size_t malloc_size(const void* address) __THROW { … }
SHIM_ALWAYS_EXPORT size_t malloc_usable_size(void* address) __THROW { … }
}
#endif
#endif