void-packages/srcpkgs/chmlib/patches/aarch64-ppc64-aarch64.patch

12 lines
480 B
Diff

--- a/src/chm_lib.c 2017-07-07 20:15:32.999769723 +0200
+++ b/src/chm_lib.c 2017-07-07 20:16:22.291847266 +0200
@@ -164,7 +164,7 @@
/* x86-64 */
/* Note that these may be appropriate for other 64-bit machines. */
-#elif __x86_64__ || __ia64__
+#elif __x86_64__ || __ia64__ || __aarch64__ || __powerpc64__ || ( defined(__riscv_xlen) && __riscv_xlen == 64)
typedef unsigned char UChar;
typedef short Int16;
typedef unsigned short UInt16;