(svn r5697) -Fix [r5684]: tolower() was undefined for certain architectures, strangly VS2003 didn't complain, VS2005 did. Thanks glx
authorDarkvater
Tue, 01 Aug 2006 19:19:39 +0000
changeset 4209 f0ecce3cb2b0
parent 4208 ce140ac892d0
child 4210 654309f99970
(svn r5697) -Fix [r5684]: tolower() was undefined for certain architectures, strangly VS2003 didn't complain, VS2005 did. Thanks glx
gfxinit.c
string.c
win32.c
--- a/gfxinit.c	Tue Aug 01 17:56:39 2006 +0000
+++ b/gfxinit.c	Tue Aug 01 19:19:39 2006 +0000
@@ -13,7 +13,6 @@
 #include "newgrf.h"
 #include "md5.h"
 #include "variables.h"
-#include <ctype.h>
 
 typedef struct MD5File {
 	const char * const filename;     // filename
--- a/string.c	Tue Aug 01 17:56:39 2006 +0000
+++ b/string.c	Tue Aug 01 19:19:39 2006 +0000
@@ -4,9 +4,7 @@
 #include "string.h"
 
 #include <stdarg.h>
-#if defined(UNIX) || defined(__OS2__)
 #include <ctype.h> // required for tolower()
-#endif
 
 void ttd_strlcat(char *dst, const char *src, size_t size)
 {
--- a/win32.c	Tue Aug 01 17:56:39 2006 +0000
+++ b/win32.c	Tue Aug 01 19:19:39 2006 +0000
@@ -18,7 +18,6 @@
 #include <fcntl.h>
 #include "variables.h"
 #include "win32.h"
-#include <ctype.h>
 
 static bool _has_console;