about summary refs log tree commit diff stats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-09-02 16:35:07 +0200
committerGitHub <noreply@github.com>2023-09-02 16:35:07 +0200
commit25a064f3a8da90626b8c33fc01bb1e1bd0b4c4c8 (patch)
treedc564c30b2155310cf82c7bd6a4664255fea4a6c /src/include/debug.h
parenteb1e607b935a1c90c0c9cf0b352d95423e42740d (diff)
parent8a25b91ad23b8ef0c1154f43f95459209d372463 (diff)
downloadbox64-25a064f3a8da90626b8c33fc01bb1e1bd0b4c4c8.tar.gz
box64-25a064f3a8da90626b8c33fc01bb1e1bd0b4c4c8.zip
Merge pull request #962 from ptitSeb/android
[ANDROID] Try to create an Android build, porting box86 Android build
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index 8397d6c5..9bfc5c89 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -104,14 +104,15 @@ void printf_ftrace(const char* fmt, ...);
 #endif
 
 void init_malloc_hook(void);
-extern size_t(*box_malloc_usable_size)(void*);
 #ifdef ANDROID
+extern size_t(*box_malloc_usable_size)(const void*);
 extern void*(*__libc_malloc)(size_t);
 extern void*(*__libc_realloc)(void*, size_t);
 extern void*(*__libc_calloc)(size_t, size_t);
 extern void (*__libc_free)(void*);
 extern void*(*__libc_memalign)(size_t, size_t);
 #else
+extern size_t(*box_malloc_usable_size)(void*);
 extern void* __libc_malloc(size_t);
 extern void* __libc_realloc(void*, size_t);
 extern void* __libc_calloc(size_t, size_t);