From 861679e616d63675cf619550fa61d1f813cb074b Mon Sep 17 00:00:00 2001 From: Marian Krivos Date: Sat, 15 Jan 2011 17:32:00 +0000 Subject: [PATCH] fix linker error with MINGW32 --- Util/include/Poco/Util/Application.h | 2 +- Util/include/Poco/Util/ServerApplication.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) \ { \