msvc fixes
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 05:28:48 +0000 (05:28 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 05:28:48 +0000 (05:28 +0000)
include/share/alloc.h

index 42528c1..812aa69 100644 (file)
 #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