diff options
author | rubidium <rubidium@openttd.org> | 2007-07-14 20:30:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-14 20:30:35 +0000 |
commit | 25028759c1ae779f5ec1768a066180cd8ed5c138 (patch) | |
tree | bd0cb27ac07f0dd258f625539fb0fa5233d4534f /src/stdafx.h | |
parent | 68c5bcf9601efd3f311a27d833d3242d10068ee8 (diff) | |
download | openttd-25028759c1ae779f5ec1768a066180cd8ed5c138.tar.xz |
(svn r10562) -Fix: most of the MorphOS issues; MorphOS doesn't know about wchars, so disable all code that has to use wchars for MorphOS.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 02a7b32bc..57db80c57 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -341,4 +341,12 @@ 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... */ +#define _stricmp stricmp +#endif /* !defined(MORHPOS) */ + #endif /* STDAFX_H */ |