0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::allocator: Weaken the extern hook declarations.

This commit is contained in:
Jason Volk 2020-04-30 05:36:07 -07:00
parent 8c0a6f0ba8
commit f7d6a00acb

View file

@ -17,17 +17,17 @@
namespace ircd::allocator
{
void *(*their_malloc_hook)(size_t, const void *);
void *malloc_hook(size_t, const void *);
[[gnu::weak]] void *malloc_hook(size_t, const void *);
static void install_malloc_hook();
static void uninstall_malloc_hook();
void *(*their_realloc_hook)(void *, size_t, const void *);
void *realloc_hook(void *, size_t, const void *);
[[gnu::weak]] void *realloc_hook(void *, size_t, const void *);
static void install_realloc_hook();
static void uninstall_realloc_hook();
void (*their_free_hook)(void *, const void *);
void free_hook(void *, const void *);
[[gnu::weak]] void free_hook(void *, const void *);
static void install_free_hook();
static void uninstall_free_hook();
}