[mw-devel] MW3 r1251 - trunk/src

welshbyte at sucs.org welshbyte at sucs.org
Thu Jun 9 22:36:52 BST 2011


Author: welshbyte
Date: 2011-06-09 22:36:52 +0100 (Thu, 09 Jun 2011)
New Revision: 1251

Modified:
   trunk/src/newmain.c
Log:
Include locale.h to fix an error (which only triggers with optimizations off).

newmain.c: In function ?\226?\128?\152c_locale?\226?\128?\153:
newmain.c:1131: warning: implicit declaration of function ?\226?\128?\152setlocale?\226?\128?\153
newmain.c:1131: error: ?\226?\128?\152LC_CTYPE?\226?\128?\153 undeclared (first use in this function)
newmain.c:1131: error: (Each undeclared identifier is reported only once
newmain.c:1131: error: for each function it appears in.)
newmain.c:1131: warning: format ?\226?\128?\152%s?\226?\128?\153 expects type ?\226?\128?\152char *?\226?\128?\153, but argument 2 has type ?\226?\128?\152int?\226?\128?\153
make: *** [newmain.o] Error 1



Modified: trunk/src/newmain.c
===================================================================
--- trunk/src/newmain.c	2011-06-06 08:50:39 UTC (rev 1250)
+++ trunk/src/newmain.c	2011-06-09 21:36:52 UTC (rev 1251)
@@ -12,6 +12,8 @@
 #include <string.h>
 #include <time.h>
 #include <stdbool.h>
+#include <locale.h>
+
 #include "Parse.h"
 #include "iconv.h"
 #include "strings.h"




More information about the mw-devel mailing list