[mapserver-commits] r9178 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Jul 16 18:22:21 EDT 2009
Author: tamas
Date: 2009-07-16 18:22:19 -0400 (Thu, 16 Jul 2009)
New Revision: 9178
Modified:
trunk/mapserver/mapserver.h
Log:
Define SIZE_MAX for MSVC2003 to prevent from the compiler error.
Modified: trunk/mapserver/mapserver.h
===================================================================
--- trunk/mapserver/mapserver.h 2009-07-14 04:53:59 UTC (rev 9177)
+++ trunk/mapserver/mapserver.h 2009-07-16 22:22:19 UTC (rev 9178)
@@ -80,6 +80,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
+
#if ULONG_MAX == 0xffffffff
typedef long ms_int32;
typedef unsigned long ms_uint32;
More information about the mapserver-commits
mailing list