Taken from Debian, necessary for compilation on mips. Patch to fix integer types problem by Goswin von Brederlow (#258444) --- chmlib-0.39.orig/src/chm_lib.c +++ chmlib-0.39/src/chm_lib.c @@ -56,6 +56,7 @@ #include "lzx.h" +#include #include #include #ifdef CHM_DEBUG @@ -149,22 +150,9 @@ typedef __int64 Int64; typedef unsigned __int64 UInt64; -/* I386, 32-bit, non-Windows */ -/* Sparc */ -/* MIPS */ -/* PPC */ -#elif __i386__ || __sun || __sgi || __ppc__ -typedef unsigned char UChar; -typedef short Int16; -typedef unsigned short UInt16; -typedef long Int32; -typedef unsigned long UInt32; -typedef long long Int64; -typedef unsigned long long UInt64; - /* x86-64 */ /* Note that these may be appropriate for other 64-bit machines. */ -#elif __x86_64__ || __ia64__ +#elif defined(__LP64__) typedef unsigned char UChar; typedef short Int16; typedef unsigned short UInt16; @@ -173,10 +161,18 @@ typedef long Int64; typedef unsigned long UInt64; +/* I386, 32-bit, non-Windows */ +/* Sparc */ +/* MIPS */ +/* PPC */ #else - -/* yielding an error is preferable to yielding incorrect behavior */ -#error "Please define the sized types for your platform in chm_lib.c" +typedef unsigned char UChar; +typedef short Int16; +typedef unsigned short UInt16; +typedef long Int32; +typedef unsigned long UInt32; +typedef long long Int64; +typedef unsigned long long UInt64; #endif /* GCC */ ' value='e0945a02a41afe31d99e3920aa9f7e2239df7bb7'/>
AgeCommit message (Collapse)Author
2020-07-14gnu: usb-modeswitch: Use CC-FOR-TARGET.Tobias Geerinckx-Rice
* gnu/packages/usb-modeswitch.scm (usb-modeswitch)[arguments]: Use CC-FOR-TARGET.
2020-07-14gnu: usb-modeswitch: Update to 2.6.1.Tobias Geerinckx-Rice
* gnu/packages/usb-modeswitch.scm (usb-modeswitch): Update to 2.6.1.
2020-01-20gnu: USB_ModeSwitch data: Update to 20191128.Florian Pelz
* gnu/packages/usb-modeswitch.scm (usb-modeswitch-data): Update to 20191128. [source] Use HTTPS. [home-page] Use HTTPS.
2020-01-20gnu: USB_ModeSwitch: Update to 2.6.0.Florian Pelz
* gnu/packages/usb-modeswitch.scm (usb-modeswitch): Update to 2.6.0. [source]: Remove snippet that deletes jimtcl, which is no longer bundled. Remove patch. Use HTTPS. [arguments]: Adapt to changed file names. [home-page] Use HTTPS. [license]: Fix missing BSD-2 license. * gnu/packages/patches/usb-modeswitch-accept-config-arg.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.