[mapserver-commits] r9188 - branches/branch-5-0/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jul 20 10:14:04 EDT 2009


Author: aboudreault
Date: 2009-07-20 10:14:04 -0400 (Mon, 20 Jul 2009)
New Revision: 9188

Modified:
   branches/branch-5-0/mapserver/mapserver.h
Log:
Define SIZE_MAX for MSVC2003 to prevent from the compiler error (branch-5-0)

Modified: branches/branch-5-0/mapserver/mapserver.h
===================================================================
--- branches/branch-5-0/mapserver/mapserver.h	2009-07-20 14:11:12 UTC (rev 9187)
+++ branches/branch-5-0/mapserver/mapserver.h	2009-07-20 14:14:04 UTC (rev 9188)
@@ -69,6 +69,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