aboutsummaryrefslogtreecommitdiffstats
path: root/testing/chmlib/stdtypes.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:21:36 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:24:47 +0100
commita861fb9faf7dde1ca4c9ad2915e1c536ddb3a3a4 (patch)
tree82bee4ece2b38cb71dd5cc43ea827c3ef87c555a /testing/chmlib/stdtypes.patch
parent9b1914641d2c38ee02e8de2b9e8fa489ece14218 (diff)
downloadaports-a861fb9faf7dde1ca4c9ad2915e1c536ddb3a3a4.tar.bz2
aports-a861fb9faf7dde1ca4c9ad2915e1c536ddb3a3a4.tar.xz
testing/chmlib: import 2 patches from gentoo
Diffstat (limited to 'testing/chmlib/stdtypes.patch')
-rw-r--r--testing/chmlib/stdtypes.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/chmlib/stdtypes.patch b/testing/chmlib/stdtypes.patch
new file mode 100644
index 0000000000..0f92320176
--- /dev/null
+++ b/testing/chmlib/stdtypes.patch
@@ -0,0 +1,20 @@
+--- src/chm_lib.c
++++ src/chm_lib.c
+@@ -149,6 +149,17 @@ typedef unsigned __int32 UInt32;
+ typedef __int64 Int64;
+ typedef unsigned __int64 UInt64;
+
++/* Linux: use C standard types */
++#elif defined(__linux__)
++#include <stdint.h>
++typedef unsigned char UChar;
++typedef int16_t Int16;
++typedef uint16_t UInt16;
++typedef int32_t Int32;
++typedef uint32_t UInt32;
++typedef int64_t Int64;
++typedef uint64_t UInt64;
++
+ /* I386, 32-bit, non-Windows */
+ /* Sparc */
+ /* MIPS */