Large patch from Ben Allison fixing the MSVC build.

Patch tweaked a little to fix Linux build and clean up minor problems.
This commit is contained in:
Erik de Castro Lopo
2013-03-06 22:17:46 +11:00
parent 91790ef965
commit a4c321e492
10 changed files with 59 additions and 10 deletions

View File

@@ -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