From 4d16f3e7d2404ad28642b2bc947d541b5eb1235d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 15 Aug 2019 19:24:50 +0200 Subject: [PATCH] fix reveng: unsigned long on Mingw64 is only 32b, hopefully limits.h can help --- client/reveng/config.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/reveng/config.h b/client/reveng/config.h index ecf17773f..94d3c4da5 100644 --- a/client/reveng/config.h +++ b/client/reveng/config.h @@ -78,14 +78,15 @@ #include -#if UINTPTR_MAX == UINT64_MAX -// 64-bit +#include +#if ULONG_MAX == UINT64_MAX +// most 64-bit platforms #define PRESETS 1 #define BMP_BIT 64 #define BMP_SUB 32 -#elif UINTPTR_MAX == UINT32_MAX -// 32-bit +#elif ULONG_MAX == UINT32_MAX +// 32-bit platforms and Mingw64 #define PRESETS 1 #define BMP_BIT 32 #define BMP_SUB 16