summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-17 16:59:21 +0000
committerrubidium <rubidium@openttd.org>2007-07-17 16:59:21 +0000
commit736eafaf8e6351f49c012e763aecb3833190deeb (patch)
tree94638c9efde5cbf556f2cf5af36afcb501d55fb5 /src/stdafx.h
parent549893651c1cfa7697fe1600a6ba8dabeb0e2dde (diff)
downloadopenttd-736eafaf8e6351f49c012e763aecb3833190deeb.tar.xz
(svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 7c34a7e4c..22576e84b 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -341,13 +341,18 @@ NORETURN
CDECL error(const char *str, ...);
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)
-#if !defined(MORPHOS)
-/* MorphOS doesn't know wchars, the rest does :( */
-#define HAS_WCHAR
-#else
-/* And MorphOS doesn't have C++ conformant _stricmp... */
+#if defined(MORPHOS)
+/* MorphOS doesn't have C++ conformant _stricmp... */
#define _stricmp stricmp
-#endif /* !defined(MORHPOS) */
+#elif defined(OPENBSD)
+/* OpenBSD uses strcasecmp(3) */
+#define _stricmp strcasecmp
+#endif
+
+#if !defined(MORPHOS) and !defined(OPENBSD)
+/* MorphOS & OpenBSD don't know wchars, the rest does :( */
+#define HAS_WCHAR
+#endif /* !defined(MORHPOS) and !defined(OPENBSD) */
#if !defined(MAX_PATH)
# define MAX_PATH 260