diff --git a/qt5/src/poppler-private.h b/qt5/src/poppler-private.h index 0dd40d7..59d3b95 100644 --- a/qt5/src/poppler-private.h +++ b/qt5/src/poppler-private.h @@ -85,7 +85,7 @@ namespace Poppler { init(); m_filePath = filePath; -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) wchar_t *fileName = new WCHAR[filePath.length()]; std::wstring wstr = (const wchar_t *)filePath.utf16(); int length = wstr._Copy_s(fileName, filePath.length(), filePath.length());