[mapserver-commits] r9179 - branches/branch-5-4/mapserver

svn at osgeo.org svn at osgeo.org
Fri Jul 17 09:45:53 EDT 2009


Author: tamas
Date: 2009-07-17 09:45:52 -0400 (Fri, 17 Jul 2009)
New Revision: 9179

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

Modified: branches/branch-5-4/mapserver/mapserver.h
===================================================================
--- branches/branch-5-4/mapserver/mapserver.h	2009-07-16 22:22:19 UTC (rev 9178)
+++ branches/branch-5-4/mapserver/mapserver.h	2009-07-17 13:45:52 UTC (rev 9179)
@@ -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