changeset 7275:0657179a042c draft

(svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias.
author rubidium <rubidium@openttd.org>
date Tue, 17 Jul 2007 16:59:21 +0000
parents 87c29c7fc74c
children 09ed8c0bd0ed
files src/stdafx.h
diffstat 1 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -341,13 +341,18 @@
 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 :( */
+#if defined(MORPHOS)
+/* MorphOS doesn't have C++ conformant _stricmp... */
+#define _stricmp stricmp
+#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
-#else
-/* And MorphOS doesn't have C++ conformant _stricmp... */
-#define _stricmp stricmp
-#endif /* !defined(MORHPOS) */
+#endif /* !defined(MORHPOS) and !defined(OPENBSD) */
 
 #if !defined(MAX_PATH)
 # define MAX_PATH 260