BBlockCache: Don't use weak symbols except on Haiku.
We may compile on systems that don't use ELF (e.g. Darwin/macOS.) Avoid a dependency on the feature where we don't need it.
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
#include <new>
|
||||
|
||||
|
||||
#ifdef __HAIKU__
|
||||
extern "C" void heap_debug_get_allocation_info() __attribute__((weak));
|
||||
#else
|
||||
static const void* heap_debug_get_allocation_info = NULL;
|
||||
#endif
|
||||
|
||||
|
||||
#define MAGIC1 0x9183f4d9
|
||||
|
||||
Reference in New Issue
Block a user