]> git.pld-linux.org Git - packages/chmlib.git/blob - chmlib-morearchs.patch
91058652c0dd5c2406150ce9098a44d30d73a3d6
[packages/chmlib.git] / chmlib-morearchs.patch
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
4 @@ -157,14 +157,15 @@
5  /* Sparc        */
6  /* MIPS         */
7  /* PPC          */
8 -#elif __i386__ || __sun || __sgi || __ppc__
9 +#elif __i386__ || __sun || __sgi || __ppc__ || __linux__
10 +#include <stdint.h>
11  typedef unsigned char           UChar;
12 -typedef short                   Int16;
13 -typedef unsigned short          UInt16;
14 -typedef long                    Int32;
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;
24  #else
25  
26  /* yielding an error is preferable to yielding incorrect behavior */
27 @@ -1123,7 +1124,7 @@
28       *      that is provided for us.
29       */
30      struct chmPmglHeader header;
31 -    UInt32 hremain;
32 +    unsigned long hremain;
33      UChar *end;
34      UChar *cur;
35      UChar *temp;
36 @@ -1165,7 +1166,7 @@
37       *      that is provided for us
38       */
39      struct chmPmgiHeader header;
40 -    UInt32 hremain;
41 +    unsigned long hremain;
42      int page=-1;
43      UChar *end;
44      UChar *cur;
This page took 0.02329 seconds and 2 git commands to generate.