1 diff -urN chmlib.orig/src/chm_lib.c chmlib/src/chm_lib.c
2 --- chmlib.orig/src/chm_lib.c 2004-05-03 23:29:04.000000000 +0200
3 +++ chmlib/src/chm_lib.c 2004-07-05 14:38:31.000000000 +0200
8 -#elif __i386__ || __sun || __sgi || __ppc__
9 +#elif __i386__ || __sun || __sgi || __ppc__ || __linux__
11 typedef unsigned char UChar;
13 -typedef unsigned short UInt16;
15 -typedef unsigned long UInt32;
16 -typedef long long Int64;
17 -typedef unsigned long long UInt64;
18 +typedef int16_t Int16;
19 +typedef uint16_t UInt16;
20 +typedef int32_t Int32;
21 +typedef uint32_t UInt32;
22 +typedef int64_t Int64;
23 +typedef uint64_t UInt64;
26 /* yielding an error is preferable to yielding incorrect behavior */
28 * that is provided for us.
30 struct chmPmglHeader header;
32 + unsigned long hremain;
37 * that is provided for us
39 struct chmPmgiHeader header;
41 + unsigned long hremain;