[mapserver-commits] r11389 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Mar 30 12:02:04 EDT 2011


Author: dmorissette
Date: 2011-03-30 09:02:04 -0700 (Wed, 30 Mar 2011)
New Revision: 11389

Modified:
   trunk/mapserver/maperror.c
   trunk/mapserver/mapserver.h
Log:
Fix build warnings

Modified: trunk/mapserver/maperror.c
===================================================================
--- trunk/mapserver/maperror.c	2011-03-30 15:53:10 UTC (rev 11388)
+++ trunk/mapserver/maperror.c	2011-03-30 16:02:04 UTC (rev 11389)
@@ -92,7 +92,7 @@
 
 errorObj *msGetErrorObj()
 {
-    static errorObj ms_error = {MS_NOERR, "", "", NULL};
+    static errorObj ms_error = {MS_NOERR, "", "", MS_FALSE, NULL};
 
     return &ms_error;
 }

Modified: trunk/mapserver/mapserver.h
===================================================================
--- trunk/mapserver/mapserver.h	2011-03-30 15:53:10 UTC (rev 11388)
+++ trunk/mapserver/mapserver.h	2011-03-30 16:02:04 UTC (rev 11389)
@@ -46,6 +46,10 @@
 ** Main includes. If a particular header was needed by several .c files then
 ** I just put it here. What the hell, it works and it's all right here. -SDL-
 */
+#ifndef NEED_STRCASESTR
+#define _GNU_SOURCE /* Required for <string.h> strcasestr() defn */
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>



More information about the mapserver-commits mailing list