From 93d9b7748298a00e0fc42190072db16d678eb974 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 29 Sep 2016 10:14:53 +0200 Subject: This patch allows cmocka to be run under windows 64-bit In that system while the maximum word size is 64-bits, the 'unsigned long int' type is only 32-bits. Reviewed-by: Andreas Schneider --- include/cmocka.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cmocka.h b/include/cmocka.h index 4be40ea..72d6ae2 100644 --- a/include/cmocka.h +++ b/include/cmocka.h @@ -71,7 +71,7 @@ int __stdcall IsDebuggerPresent(); typedef uintmax_t LargestIntegralType; #else /* DOXGEN */ #ifndef LargestIntegralType -# if __WORDSIZE == 64 +# if __WORDSIZE == 64 && !defined(_WIN64) # define LargestIntegralType unsigned long int # else # define LargestIntegralType unsigned long long int -- cgit v1.2.3