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:
Augustin Cavalier
2025-03-03 14:47:51 -05:00
parent d56e1a13aa
commit 73e7455250
+4
View File
@@ -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