Skip to content

Commit

Permalink
Update nQuantCpp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Oct 26, 2023
1 parent 85db138 commit 4fc761f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nQuantCpp/nQuantCpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,24 +296,22 @@ void OutputImages(const fs::path& sourceDir, wstring& targetDir, const UINT& nMa
tcout << "Completed in " << dur << " secs." << endl;
}

#ifdef _WIN32
int wmain(int argc, wchar_t** argv)
int _tmain(int argc, _TCHAR** argv)
{
#ifdef _WIN32
_setmode(_fileno(stdout), _O_U16TEXT);
#else
int main(int argc, char** argv)
{
ios::sync_with_stdio(false); // Linux gcc
tcout.imbue(locale(""));
setlocale(LC_CTYPE, "");
#endif

if (argc <= 1) {
#ifndef _DEBUG
if (argc <= 1) {
PrintUsage();
return 0;
#endif
}
#endif

auto szDir = fs::current_path().wstring();

Expand Down

0 comments on commit 4fc761f

Please sign in to comment.