From a861fb9faf7dde1ca4c9ad2915e1c536ddb3a3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 15 Feb 2016 17:21:36 +0100 Subject: testing/chmlib: import 2 patches from gentoo --- testing/chmlib/stdtypes.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testing/chmlib/stdtypes.patch (limited to 'testing/chmlib/stdtypes.patch') 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 ++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 */ -- cgit v1.2.3