1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Fix wrong version when enabling fLangCodes for VS2010/VS2003

Added one more #ifdef for fLangCodes around fLangCodes declaration
This commit is contained in:
rarified
2020-08-13 11:49:20 -06:00
parent eead82f0fc
commit 7385171b8a
2 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,7 @@ const char* plLocalization::fLangTags[] =
};
const int kLangTagLen = 4;
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
std::string fLangCodes_en[] = {"eng", "en"};
std::string fLangCodes_fr[] = {"fre", "fra", "fr"};
std::string fLangCodes_de[] = {"ger", "deu", "de"};

View File

@ -77,7 +77,7 @@ public:
protected:
static Language fLanguage;
static const char* fLangTags[kNumLanguages];
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
static const std::set<std::string> fLangCodes[kNumLanguages];
#endif
static const char* fLangNames[kNumLanguages];
@ -94,7 +94,9 @@ public:
static Language GetLanguage() { return fLanguage; }
static const char* GetLanguageName(Language lang) { return fLangNames[lang]; }
#if defined(_MSC_VER) && _MSC_VER >= 1600
static std::set<std::string> GetLanguageCodes(Language lang) { return fLangCodes[lang]; }
#endif
static hsBool UsingUnicode() { return fUsesUnicode[fLanguage]; }
static encodingTypes UnicodeEncoding() { return fUnicodeEncoding[fLanguage]; }