summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2007-09-12 05:28:48 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2007-09-12 05:28:48 +0000
commit8c4ac1dcb78fb13a87ebc25afe6a929a48a8c9f7 (patch)
treee3c2b799f024e1e710d0b7a62e2818c1a0e65bfc /include
parent0577344cb31df11bedd8ff3b5e158425e9d699da (diff)
downloadflac-8c4ac1dcb78fb13a87ebc25afe6a929a48a8c9f7.tar.gz
msvc fixes
Diffstat (limited to 'include')
-rw-r--r--include/share/alloc.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/share/alloc.h b/include/share/alloc.h
index 42528c1c..812aa69d 100644
--- 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