mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix compile for linux/macos
This commit is contained in:
@ -19,10 +19,17 @@ int main(int argc, char** argv)
|
||||
|
||||
std::wstring config_path;
|
||||
|
||||
if(argc < 2) config_path = L"./config.xml";
|
||||
else config_path = std::wstring(argv[1]);
|
||||
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
if(argc < 2)
|
||||
config_path = L"./config.xml";
|
||||
else
|
||||
{
|
||||
#ifdef WIN32
|
||||
config_path = std::wstring(argv[1]);
|
||||
#else
|
||||
std::string config_pathA = std::string(argv[1]);
|
||||
config_path = UTF8_TO_U(config_pathA);
|
||||
#endif
|
||||
}
|
||||
|
||||
Cx2tTester tester(config_path);
|
||||
tester.Start();
|
||||
|
||||
@ -263,7 +263,7 @@ void Cx2tTester::Start()
|
||||
|
||||
// waiting...
|
||||
while(isAllBusy())
|
||||
Sleep(100);
|
||||
NSThreads::Sleep(100);
|
||||
|
||||
// setup & start new coverter
|
||||
m_currentProc++;
|
||||
@ -281,7 +281,7 @@ void Cx2tTester::Start()
|
||||
|
||||
// waiting all procs end
|
||||
while(!isAllFree())
|
||||
Sleep(100);
|
||||
NSThreads::Sleep(100);
|
||||
}
|
||||
|
||||
void Cx2tTester::writeReport(const Report& report)
|
||||
|
||||
Reference in New Issue
Block a user