[mapserver-commits] r9187 - branches/branch-5-2/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jul 20 10:11:13 EDT 2009


Author: aboudreault
Date: 2009-07-20 10:11:12 -0400 (Mon, 20 Jul 2009)
New Revision: 9187

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

Modified: branches/branch-5-2/mapserver/mapserver.h
===================================================================
--- branches/branch-5-2/mapserver/mapserver.h	2009-07-19 22:47:37 UTC (rev 9186)
+++ branches/branch-5-2/mapserver/mapserver.h	2009-07-20 14:11:12 UTC (rev 9187)
@@ -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