about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-08 20:06:00 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-08 20:06:00 +0200
commit499338e80dc1576eb98f1bd881367530ff7a9a3e (patch)
tree137fd73c6500a2798c8d46a6089afdf4f6f73683 /src
parentc12f8fa2544dbcfb29416f39f784abefef276ccb (diff)
downloadbox64-499338e80dc1576eb98f1bd881367530ff7a9a3e.tar.gz
box64-499338e80dc1576eb98f1bd881367530ff7a9a3e.zip
Fixed non-Box32 builds
Diffstat (limited to 'src')
-rw-r--r--src/mallochook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mallochook.c b/src/mallochook.c
index d900d704..2aae5ec0 100644
--- a/src/mallochook.c
+++ b/src/mallochook.c
@@ -181,6 +181,8 @@ static int ispot(size_t l) {
 SUPER()
 #undef GO2
 #undef GO
+
+#ifdef BOX32
 int isCustomAddr(void* p);
 #define SPACE32 (void*)0x100000000LL
 void* box32_calloc(size_t n, size_t s)
@@ -229,7 +231,6 @@ size_t box32_malloc_usable_size(void* p)
     else
         return box_malloc_usable_size(p);
 }
-#ifdef BOX32
 #define actual_calloc(A, B)             box64_is32bits?box32_calloc(A, B):box_calloc(A, B)
 #define actual_malloc(A)                box64_is32bits?box32_malloc(A):box_malloc(A)
 #define actual_realloc(A, B)            box64_is32bits?box32_realloc(A, B):box_realloc(A, B)