This commit is contained in:
Oleg.Korshul
2020-10-04 14:12:01 +03:00
committed by Oleg Korshul
parent c4f66953e6
commit 800f6434e1
5 changed files with 5 additions and 7 deletions

View File

@ -39,7 +39,10 @@
#include "../DesktopEditor/common/File.h"
#if !defined (_WIN32) && !defined (_WIN64)
#if defined (_LINUX) && !defined(__ANDROID__) && !defined(_IOS)
#define USE_ICONV
#include "iconv.h"
#endif
#else
#include <windows.h>
#endif
@ -316,7 +319,7 @@ namespace NSUnicodeConverter
sResult.erase(outsize_with_0 - 1);
ansi = false;
}
#elif defined(__linux__)
#elif defined(USE_ICONV)
std::string sCodepage = "CP" + std::to_string(nCodepage);
iconv_t ic= iconv_open("WCHAR_T", sCodepage.c_str());

View File

@ -30,11 +30,6 @@ core_ios {
LIBS += -framework Foundation
}
core_android {
CONFIG += core_disable_icu
SOURCES += UnicodeConverter_internal_android.cpp
}
!core_disable_icu {
include(../Common/3dParty/icu/icu.pri)