--- chmlib-0.40/src/chm_lib.c~ 2018-04-11 16:24:00.510826960 +0300 +++ chmlib-0.40/src/chm_lib.c 2018-04-11 16:27:08.169950468 +0300 @@ -153,7 +153,7 @@ typedef unsigned __int64 UInt64; /* Sparc */ /* MIPS */ /* PPC */ -#elif __i386__ || __sun || __sgi || __ppc__ || __powerpc__ +#elif __arm__ || __i386__ || __sun || __sgi || __ppc__ || __powerpc__ typedef unsigned char UChar; typedef short Int16; typedef unsigned short UInt16; @@ -164,7 +164,7 @@ typedef unsigned long long UInt64; /* x86-64 */ /* Note that these may be appropriate for other 64-bit machines. */ -#elif __x86_64__ || __ia64__ +#elif __aarch64__ || __x86_64__ || __ia64__ typedef unsigned char UChar; typedef short Int16; typedef unsigned short UInt16;