summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/functions.h1
-rw-r--r--src/strings.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/functions.h b/src/functions.h
index 5417d59ce..6ef25ed48 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -68,7 +68,6 @@ void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str);
/* callback from drivers that is called if the game size changes dynamically */
void GameSizeChanged();
-const char *GetCurrentLocale(const char *param);
int ttd_main(int argc, char* argv[]);
void HandleExitGameRequest();
diff --git a/src/strings.cpp b/src/strings.cpp
index c9f83fc1a..4f84a8776 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1318,6 +1318,8 @@ const char *GetCurrentLocale(const char *param)
return getenv("LANG");
}
+#else
+const char *GetCurrentLocale(const char *param);
#endif /* !(defined(WIN32) || defined(__APPLE__)) */
int CDECL StringIDSorter(const void *a, const void *b)