summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-07-27 22:19:19 +0000
committerKUDr <kudr@openttd.org>2007-07-27 22:19:19 +0000
commitf9411f30c4e955968e7abdecade3303b5e63bb4c (patch)
treee75eaf77cb4fd8c8fa42083e7e90ce01cd170772 /src/strings.cpp
parent1c4b953f0673a483c9d62b56efe8611db1ac5839 (diff)
downloadopenttd-f9411f30c4e955968e7abdecade3303b5e63bb4c.tar.xz
(svn r10711) -Fix [Win32]: take default language from current user's locale on Windows (In-)
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 4ea1bc273..51dc504ad 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1224,6 +1224,8 @@ bool ReadLanguagePack(int lang_index)
return true;
}
+/* Win32 implementation in win32.cpp. */
+#ifndef WIN32
/** Determine the current charset based on the environment
* First check some default values, after this one we passed ourselves
* and if none exist return the value for $LANG
@@ -1247,6 +1249,7 @@ const char *GetCurrentLocale(const char *param)
return getenv("LANG");
}
+#endif /* ifndef WIN32 */
static int CDECL LanguageCompareFunc(const void *a, const void *b)
{