From 0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 Jan 2016 18:44:29 +0300 Subject: Fix compilation without hercules support. --- src/utils/gettexthelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp index 3d70ae3dd..2de5589dc 100644 --- a/src/utils/gettexthelper.cpp +++ b/src/utils/gettexthelper.cpp @@ -47,6 +47,7 @@ extern "C" char const *_nl_locale_name_default(void); #include "debug.h" +#if defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS) static std::string setLangEnv() { std::string lang = config.getStringValue("lang"); @@ -63,7 +64,6 @@ static std::string setLangEnv() } #endif // defined(ENABLE_NLS) && defined(WIN32) -#if defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS) if (!lang.empty()) { #ifdef WIN32 @@ -79,10 +79,10 @@ static std::string setLangEnv() #endif // WIN32 } -#endif // defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS) return lang; } +#endif // defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS) void GettextHelper::initLang() { -- cgit v1.2.3-70-g09d2