[mapserver-commits] r9189 - branches/branch-4-10/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Jul 20 10:14:59 EDT 2009
Author: aboudreault
Date: 2009-07-20 10:14:59 -0400 (Mon, 20 Jul 2009)
New Revision: 9189
Modified:
branches/branch-4-10/mapserver/map.h
Log:
Define SIZE_MAX for MSVC2003 to prevent from the compiler error (branch-4-10)
Modified: branches/branch-4-10/mapserver/map.h
===================================================================
--- branches/branch-4-10/mapserver/map.h 2009-07-20 14:14:04 UTC (rev 9188)
+++ branches/branch-4-10/mapserver/map.h 2009-07-20 14:14:59 UTC (rev 9189)
@@ -51,6 +51,16 @@
#include <stdint.h>
#endif
+#ifdef _WIN32
+#ifndef SIZE_MAX
+#ifdef _WIN64
+#define SIZE_MAX _UI64_MAX
+#else
+#define SIZE_MAX UINT_MAX
+#endif
+#endif
+#endif
+
#ifndef DISABLE_CVSID
# define MS_CVSID(string) static char ms_cvsid[] = string; \
static char *cvsid_aw(void) { return( cvsid_aw() ? ((char *) NULL) : ms_cvsid ); }
More information about the mapserver-commits
mailing list