summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-08-01 19:19:39 +0000
committerDarkvater <Darkvater@openttd.org>2006-08-01 19:19:39 +0000
commitb79774e710e0b917b7b36e5788964557f900940f (patch)
tree2eded5a9e8e2fdec7e5ef0ef1ec20bbffa2b1702
parent001d1a73d4d010ea4c55b8c4bb72fedf4c9591f2 (diff)
downloadopenttd-b79774e710e0b917b7b36e5788964557f900940f.tar.xz
(svn r5697) -Fix [r5684]: tolower() was undefined for certain architectures, strangly VS2003 didn't complain, VS2005 did. Thanks glx
-rw-r--r--gfxinit.c1
-rw-r--r--string.c2
-rw-r--r--win32.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/gfxinit.c b/gfxinit.c
index fbc0e1e9c..febc2cd60 100644
--- a/gfxinit.c
+++ b/gfxinit.c
@@ -13,7 +13,6 @@
#include "newgrf.h"
#include "md5.h"
#include "variables.h"
-#include <ctype.h>
typedef struct MD5File {
const char * const filename; // filename
diff --git a/string.c b/string.c
index c4d3e8371..3448ce673 100644
--- a/string.c
+++ b/string.c
@@ -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)
{
diff --git a/win32.c b/win32.c
index a7cee0e92..b5ab80cfb 100644
--- a/win32.c
+++ b/win32.c
@@ -18,7 +18,6 @@
#include <fcntl.h>
#include "variables.h"
#include "win32.h"
-#include <ctype.h>
static bool _has_console;