From e8d7b7f5f93036df643d76c89fd1cc30501194e4 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 7 Apr 2013 18:12:30 +1000 Subject: [PATCH] Fix Windows SIZE_T_MAX definition. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem reported by Ulrich Klauer . Patch from Janne Hyvärinen . --- include/share/alloc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/share/alloc.h b/include/share/alloc.h index 8fc17f7..969209e 100644 --- a/include/share/alloc.h +++ b/include/share/alloc.h @@ -50,7 +50,11 @@ #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER -# define SIZE_T_MAX SIZE_MAX +# ifdef _WIN64 +# define SIZE_T_MAX 0xffffffffffffffffui64 +# else +# define SIZE_T_MAX 0xffffffff +# endif # else # error # endif -- 2.7.4