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:
0577344
)
msvc fixes
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 05:28:48 +0000
(
05:28
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 05:28:48 +0000
(
05:28
+0000)
include/share/alloc.h
patch
|
blob
|
history
diff --git
a/include/share/alloc.h
b/include/share/alloc.h
index
42528c1
..
812aa69
100644
(file)
--- a/
include/share/alloc.h
+++ b/
include/share/alloc.h
@@
-34,10
+34,14
@@
#include <stdlib.h> /* for size_t, malloc(), etc */
#ifndef SIZE_MAX
-#ifndef SIZE_T_MAX
-#error
-#endif
-#define SIZE_MAX SIZE_T_MAX
+# ifndef SIZE_T_MAX
+# ifdef _MSC_VER
+# define SIZE_T_MAX UINT_MAX
+# else
+# error
+# endif
+# endif
+# define SIZE_MAX SIZE_T_MAX
#endif
#ifndef FLaC__INLINE