projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6219e8
)
Fix Windows SIZE_T_MAX definition.
author
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sun, 7 Apr 2013 08:12:30 +0000
(18:12 +1000)
committer
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sun, 7 Apr 2013 08:12:35 +0000
(18:12 +1000)
Problem reported by Ulrich Klauer <ulrich@chirlu.de>.
Patch from Janne Hyvärinen <cse@sci.fi>.
include/share/alloc.h
patch
|
blob
|
history
diff --git
a/include/share/alloc.h
b/include/share/alloc.h
index
8fc17f7
..
969209e
100644
(file)
--- 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