diff options
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index eb47401..f283dcf 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -12,6 +12,13 @@ jmp_buf test_runner::_failure; static size_t g_memory_total_size = 0;
+#ifdef __linux
+size_t _msize(void* ptr)
+{
+ return malloc_usable_size(ptr);
+}
+#endif
+
static void* custom_allocate(size_t size)
{
if (test_runner::_memory_fail_threshold > 0 && test_runner::_memory_fail_threshold < size)
|