about summary refs log tree commit diff stats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-26 19:22:53 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-26 19:22:53 +0100
commit13404ed090453ffa1a2b475b004b74db7086ff74 (patch)
tree9d1fb5cbad4f90ce1dcd2df7f7220b6dea6d4755 /src/include/debug.h
parentff6cc844821439a8f50b68b27e6f1ac5264579c8 (diff)
downloadbox64-13404ed090453ffa1a2b475b004b74db7086ff74.tar.gz
box64-13404ed090453ffa1a2b475b004b74db7086ff74.zip
Added ability to staticaly build box64 (for #1045 and #310, maybe a few others tickets)
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index 59568021..0f0526f7 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -127,8 +127,10 @@ void printf_ftrace(const char* fmt, ...);
 #define EXPORTDYN
 #endif
 
+#ifndef STATICBUILD
 void init_malloc_hook(void);
-#ifdef ANDROID
+#endif
+#if defined(ANDROID) || defined(STATICBUILD)
 #define box_malloc      malloc
 #define box_realloc     realloc
 #define box_calloc      calloc