Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 73b0275e55bd743eb1f1a7ca0bd4721c > files > 1

chmlib-0.39-1mdv2007.1.src.rpm

--- chmlib-0.37/src/chm_lib.c.orig	2006-06-07 19:19:23.000000000 +0200
+++ chmlib-0.37/src/chm_lib.c	2006-06-07 19:20:24.000000000 +0200
@@ -160,14 +160,15 @@ typedef unsigned __int64        UInt64;
 /* Sparc        */
 /* MIPS         */
 /* PPC          */
-#elif __i386__ || __sun || __sgi || __ppc__
+#elif __i386__ || __sun || __sgi || __powerpc__ || __linux__
+#include <stdint.h>
 typedef unsigned char           UChar;
-typedef short                   Int16;
-typedef unsigned short          UInt16;
-typedef long                    Int32;
-typedef unsigned long           UInt32;
-typedef long long               Int64;
-typedef unsigned long long      UInt64;
+typedef int16_t                 Int16;
+typedef uint16_t                UInt16;
+typedef int32_t                 Int32;
+typedef uint32_t                UInt32;
+typedef int64_t                 Int64;
+typedef uint64_t                UInt64;
 
 /* x86-64 */
 /* Note that these may be appropriate for other 64-bit machines. */