summaryrefslogtreecommitdiff
path: root/src/language.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2015-08-09 12:33:27 +0000
committerrubidium <rubidium@openttd.org>2015-08-09 12:33:27 +0000
commit69fac508c386f660be4428a1e58da30ec0acd9a1 (patch)
tree7a0fd9a382b0e7dec5966bc7e50f249021d9f91a /src/language.h
parentbdf090b406e87ff2d0a3f3c5b6dc92b4c232dc3c (diff)
downloadopenttd-69fac508c386f660be4428a1e58da30ec0acd9a1.tar.xz
(svn r27367) -Codechange: make a distinction between the layouting part of ICU (lx) or the sorting/collation part of ICU (i18n)
Diffstat (limited to 'src/language.h')
-rw-r--r--src/language.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/language.h b/src/language.h
index 694b0ca1b..fed138e63 100644
--- a/src/language.h
+++ b/src/language.h
@@ -13,9 +13,9 @@
#define LANGUAGE_H
#include "core/smallvec_type.hpp"
-#ifdef WITH_ICU
+#ifdef WITH_ICU_SORT
#include <unicode/coll.h>
-#endif /* WITH_ICU */
+#endif /* WITH_ICU_SORT */
static const uint8 CASE_GENDER_LEN = 16; ///< The (maximum) length of a case/gender string.
static const uint8 MAX_NUM_GENDERS = 8; ///< Maximum number of supported genders.
@@ -110,9 +110,9 @@ extern LanguageList _languages;
/** The currently loaded language. */
extern const LanguageMetadata *_current_language;
-#ifdef WITH_ICU
+#ifdef WITH_ICU_SORT
extern Collator *_current_collator;
-#endif /* WITH_ICU */
+#endif /* WITH_ICU_SORT */
bool ReadLanguagePack(const LanguageMetadata *lang);
const LanguageMetadata *GetLanguage(byte newgrflangid);