summaryrefslogtreecommitdiff
path: root/include/share/alloc.h
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-03-06 22:17:46 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-03-06 22:17:51 +1100
commita4c321e492748db0a7e38240699ba420ba88e01c (patch)
treed8179a7c86037de5b7d0cbca0b5131a647621e70 /include/share/alloc.h
parent91790ef965553fd6d76e1f51b55dc4de3b54ad4b (diff)
downloadflac-a4c321e492748db0a7e38240699ba420ba88e01c.tar.gz
Large patch from Ben Allison fixing the MSVC build.
Patch tweaked a little to fix Linux build and clean up minor problems.
Diffstat (limited to 'include/share/alloc.h')
-rw-r--r--include/share/alloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/share/alloc.h b/include/share/alloc.h
index 7aa17f79..8fc17f76 100644
--- a/include/share/alloc.h
+++ b/include/share/alloc.h
@@ -45,11 +45,12 @@
#include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */
#endif
#include <stdlib.h> /* for size_t, malloc(), etc */
+#include "share/compat.h"
#ifndef SIZE_MAX
# ifndef SIZE_T_MAX
# ifdef _MSC_VER
-# define SIZE_T_MAX UINT_MAX /* What happens on 64 bit windows? */
+# define SIZE_T_MAX SIZE_MAX
# else
# error
# endif