summaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-25 09:22:10 +0000
committerDarkvater <darkvater@openttd.org>2006-03-25 09:22:10 +0000
commit9b5d8a9921d0f8a0ed5b9dd0f3d796a35c342f8c (patch)
tree86d8ae1e4f41e2d9e2ecfe600c9e0bcd66d31b18 /hal.h
parent6cafd5f0e33f44818cc128ad3b1a140a3215e853 (diff)
downloadopenttd-9b5d8a9921d0f8a0ed5b9dd0f3d796a35c342f8c.tar.xz
(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them.
- CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index d2abd52ce..f92f5c974 100644
--- a/hal.h
+++ b/hal.h
@@ -94,4 +94,12 @@ int CDECL compare_FiosItems(const void *a, const void *b);
void CreateConsole(void);
+#if defined(WIN32) || defined(WIN64) || defined(__WATCOMC__)
+# define FS2OTTD(name) name
+# define OTTD2FS(name) name
+#else
+const char *FS2OTTD(const char *name);
+const char *OTTD2FS(const char *name);
+#endif
+
#endif /* HAL_H */