From: Erik de Castro Lopo Date: Sun, 7 Apr 2013 08:12:30 +0000 (+1000) Subject: Fix Windows SIZE_T_MAX definition. X-Git-Tag: 1.3.0pre4~24 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fflac.git;a=commitdiff_plain;h=e8d7b7f5f93036df643d76c89fd1cc30501194e4 Fix Windows SIZE_T_MAX definition. Problem reported by Ulrich Klauer . Patch from Janne Hyvärinen . --- 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