src/stdafx.h
changeset 7771 e6f9227cf0fc
parent 7762 03721db0ac1c
child 7773 8a128f839a86
--- a/src/stdafx.h	Tue Jul 17 08:18:57 2007 +0000
+++ b/src/stdafx.h	Tue Jul 17 16:59:21 2007 +0000
@@ -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