From f1da678527b2b9915225940915e017fa903ddc45 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
Date: Thu, 29 Sep 2016 10:14:53 +0200
Subject: [PATCH] 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.
---
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
--
2.7.4