1 Taken from Debian, necessary for compilation on mips.
3 Patch to fix integer types problem by Goswin von Brederlow
4 <brederlo@informatik.uni-tuebingen.de> (#258444)
5 --- chmlib-0.39.orig/src/chm_lib.c
6 +++ chmlib-0.39/src/chm_lib.c
16 typedef __int64 Int64;
17 typedef unsigned __int64 UInt64;
19 -/* I386, 32-bit, non-Windows */
23 -#elif __i386__ || __sun || __sgi || __ppc__
24 -typedef unsigned char UChar;
26 -typedef unsigned short UInt16;
28 -typedef unsigned long UInt32;
29 -typedef long long Int64;
30 -typedef unsigned long long UInt64;
33 /* Note that these may be appropriate for other 64-bit machines. */
34 -#elif __x86_64__ || __ia64__
35 +#elif defined(__LP64__)
36 typedef unsigned char UChar;
38 typedef unsigned short UInt16;
41 typedef unsigned long UInt64;
43 +/* I386, 32-bit, non-Windows */
49 -/* yielding an error is preferable to yielding incorrect behavior */
50 -#error "Please define the sized types for your platform in chm_lib.c"
51 +typedef unsigned char UChar;
53 +typedef unsigned short UInt16;
55 +typedef unsigned long UInt32;
56 +typedef long long Int64;
57 +typedef unsigned long long UInt64;