Always treat char as signed char on ARM

André Hentschel nerv at
Sun Jul 22 11:37:12 CDT 2012

On ARM the default "char" is "unsigned char" for performance reasons, Wine uses "char" expecting the x86 default (signed char).

This is the easy way of fixing it, but it might lead to collisions with unix libraries.
The more correct fix would be to replace every "char" with "signed char" where appropriate.

--- |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ b/
index 50e5513..0189f08 100644
--- a/
+++ b/
@@ -174,7 +174,7 @@ case $host in
                        AC_MSG_ERROR([You need a target with Thumb support to build Wine for ARM.])])
-    CFLAGS="$CFLAGS -marm"
+    CFLAGS="$CFLAGS -marm -fsigned-char"


Best Regards, André Hentschel

More information about the wine-patches mailing list