chmlib: fix patch for riscv64

This commit is contained in:
John 2023-01-18 20:14:39 +01:00
parent ffdddee160
commit d4d7613f6e

View file

@ -5,7 +5,7 @@
/* x86-64 */
/* Note that these may be appropriate for other 64-bit machines. */
-#elif __x86_64__ || __ia64__
+#elif __x86_64__ || __ia64__ || __aarch64__ || __powerpc64__
+#elif __x86_64__ || __ia64__ || __aarch64__ || __powerpc64__ || ( defined(__riscv_xlen) && __riscv_xlen == 64)
typedef unsigned char UChar;
typedef short Int16;
typedef unsigned short UInt16;