[AD] unicode.c patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


There is a compiling problem with unicode which George just helped me
fix under GCC v2.96, which is with RedHat 7.0.  You might wanna look it
over and make sure I didn't do anything bad or break anything heh, I
just removed the shorts from the defines like GCC and George told me
to.  :) I guess someone can put it up on CVS?

cd allegrodir/src
patch -p0 < unipatch.diff

~ST~
--- unicode.old.c	Sat Oct 14 17:00:06 2000
+++ unicode.c	Sat Oct 14 16:58:13 2000
@@ -2201,7 +2201,7 @@
    #define va_int(args, flags)               \
    (                                         \
       ((flags) & SPRINT_FLAG_SHORT_INT) ?    \
-	 va_arg(args, signed short int)      \
+	 va_arg(args, signed int)      \
       :                                      \
       (((flags) & SPRINT_FLAG_LONG_LONG) ?   \
 	 va_arg(args, signed LONGLONG)       \
@@ -2217,7 +2217,7 @@
    #define va_int(args, flags)               \
    (                                         \
       ((flags) & SPRINT_FLAG_SHORT_INT) ?    \
-	 va_arg(args, signed short int)      \
+	 va_arg(args, signed int)      \
       :                                      \
       (((flags) & SPRINT_FLAG_LONG_INT) ?    \
 	 va_arg(args, signed long int)       \
@@ -2237,7 +2237,7 @@
    #define va_uint(args, flags)              \
    (                                         \
       ((flags) & SPRINT_FLAG_SHORT_INT) ?    \
-	 va_arg(args, unsigned short int)    \
+	 va_arg(args, unsigned int)    \
       :                                      \
       (((flags) & SPRINT_FLAG_LONG_LONG) ?   \
 	 va_arg(args, unsigned LONGLONG)     \
@@ -2253,7 +2253,7 @@
    #define va_uint(args, flags)              \
    (                                         \
       ((flags) & SPRINT_FLAG_SHORT_INT) ?    \
-	 va_arg(args, unsigned short int)    \
+	 va_arg(args, unsigned int)    \
       :                                      \
       (((flags) & SPRINT_FLAG_LONG_INT) ?    \
 	 va_arg(args, unsigned long int)     \


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/