diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-07 18:12:30 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-07 18:12:35 +1000 |
commit | e8d7b7f5f93036df643d76c89fd1cc30501194e4 (patch) | |
tree | 86801f25fe926d428a8f61cf428004e510267884 | |
parent | d6219e8bb1f15b188f2e35a8b0d737dbdb7d4ede (diff) | |
download | flac-e8d7b7f5f93036df643d76c89fd1cc30501194e4.tar.gz |
Fix Windows SIZE_T_MAX definition.
Problem reported by Ulrich Klauer <ulrich@chirlu.de>.
Patch from Janne Hyvärinen <cse@sci.fi>.
-rw-r--r-- | include/share/alloc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/share/alloc.h b/include/share/alloc.h index 8fc17f76..969209ea 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 |