summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-08-04 23:27:36 +0000
committerDarkvater <darkvater@openttd.org>2006-08-04 23:27:36 +0000
commit9e69df03a7c227e92c657f8d4eab45bcb98f29c0 (patch)
tree1c85678bd0d7c25159094420fe8547024b578ee2
parent2ad99348bf078a33e8c74d0cc56316d39de999bc (diff)
downloadopenttd-9e69df03a7c227e92c657f8d4eab45bcb98f29c0.tar.xz
(svn r5760) - Codechange: Use a define for case-string comparison in OS/2 instead of function.
-rw-r--r--os2.c5
-rw-r--r--stdafx.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/os2.c b/os2.c
index efc42221f..03205b53d 100644
--- a/os2.c
+++ b/os2.c
@@ -25,11 +25,6 @@
#include <i86.h>
-static inline int strcasecmp(const char* s1, const char* s2)
-{
- return stricmp(s1, s2);
-}
-
static char *_fios_path;
static char *_fios_save_path;
static char *_fios_scn_path;
diff --git a/stdafx.h b/stdafx.h
index 5d32e97d4..9743818a0 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -22,6 +22,7 @@
#if defined(__OS2__)
# include <types.h>
+# define strcasecmp stricmp
#endif
#ifdef __BEOS__