diff --git a/Util/include/Poco/Util/Application.h b/Util/include/Poco/Util/Application.h index a1c79f46f..17a6812d0 100644 --- a/Util/include/Poco/Util/Application.h +++ b/Util/include/Poco/Util/Application.h @@ -445,7 +445,7 @@ inline Poco::Timespan Application::uptime() const // // Macro to implement main() // -#if defined(_WIN32) && defined(POCO_WIN32_UTF8) && !defined(POCO_NO_WSTRING) +#if defined(_WIN32) && defined(POCO_WIN32_UTF8) && !defined(POCO_NO_WSTRING) && !defined(MINGW32) #define POCO_APP_MAIN(App) \ int wmain(int argc, wchar_t** argv) \ { \ diff --git a/Util/include/Poco/Util/ServerApplication.h b/Util/include/Poco/Util/ServerApplication.h index 5e260d404..63250d18d 100644 --- a/Util/include/Poco/Util/ServerApplication.h +++ b/Util/include/Poco/Util/ServerApplication.h @@ -207,7 +207,7 @@ private: // // Macro to implement main() // -#if defined(_WIN32) && defined(POCO_WIN32_UTF8) +#if defined(_WIN32) && defined(POCO_WIN32_UTF8) && !defined(MINGW32) #define POCO_SERVER_MAIN(App) \ int wmain(int argc, wchar_t** argv) \ { \