Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 8b1b6ff10503b81fcd1c165282a33fc9 > files > 1

chmlib-0.40-11.mga5.src.rpm

--- src/chm_lib.c	2009-05-23 16:43:31.000000000 +0200
+++ src/chm_lib.c.oden	2009-06-21 23:43:19.000000000 +0200
@@ -153,14 +153,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. */