about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorairidosas252 <airidaslideikis@gmail.com>2025-06-24 21:15:21 +0300
committerGitHub <noreply@github.com>2025-06-24 20:15:21 +0200
commitf14fa2f2ce44a6cbee3fcef58faf742bce992a66 (patch)
tree310e326b974976766c1711e567dd2698593cf31b /src
parent7962aacc7fbe1746da2bd1ed14d84856d5c5dd6f (diff)
downloadbox64-f14fa2f2ce44a6cbee3fcef58faf742bce992a66.tar.gz
box64-f14fa2f2ce44a6cbee3fcef58faf742bce992a66.zip
[WRAPPER] additional wrapped symbols (#2765)
* [WRAPPER] Wrap libiconv library

Seems to be required with newer versions of Wine for whatever reason.

* [WRAPPER] Wrap _ctype_ symbol (ANDROID only)

For whatever reason, this symbol is used on bionic at least. Not quite sure if it's the same on Linux.

* [WRAPPER} Fix a signature typo for libiconv function
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappediconv_private.h11
-rw-r--r--src/wrapped/wrappedlibc_private.h5
2 files changed, 16 insertions, 0 deletions
diff --git a/src/wrapped/wrappediconv_private.h b/src/wrapped/wrappediconv_private.h
index 4c8e334b..21df7080 100644
--- a/src/wrapped/wrappediconv_private.h
+++ b/src/wrapped/wrappediconv_private.h
@@ -2,3 +2,14 @@
 #error Meh...
 #endif
 
+GO(libiconv_open, pFpp)
+GO(locale_charset, pFv)
+GO(libiconv_close, iFp)
+GO(libiconvctl, iFpip)
+GO(libiconv_set_relocation_prefix, vFpp)
+GO(libiconv, LFppppp)
+GO(libiconv_open_into, iFppp)
+GO(libiconvlist, vFpp)
+GO(iconv_canonicalize, pFp)
+
+DATA(_libiconv_version, 4)
\ No newline at end of file
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index 73aad2ed..72393772 100644
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -186,6 +186,11 @@ GOW(creat64, iFpu)
 GO(ctermid, pFp)
 GO(ctime, pFp)
 GO(ctime_r, pFpp)
+#ifdef ANDROID
+DATA(_ctype_, 8)
+#else
+//DATA(_ctype_, 8) //is it even used on Linux?
+#endif
 //DATA(__ctype32_b, 
 //DATA(__ctype32_tolower, 
 //DATA(__ctype32_toupper,