diff --git a/Util/include/Poco/Util/Application.h b/Util/include/Poco/Util/Application.h index 8f656e71e..135972796 100644 --- a/Util/include/Poco/Util/Application.h +++ b/Util/include/Poco/Util/Application.h @@ -139,7 +139,7 @@ public: /// Note that as of release 1.3.7, init() no longer /// calls initialize(). This is now called from run(). -#if !defined(POCO_NO_WSTRING) +#if defined (POCO_OS_FAMILY_WINDOWS) && !defined(POCO_NO_WSTRING) void init(int argc, wchar_t* argv[]); /// Processes the application's command line arguments /// and sets the application's properties (e.g., diff --git a/Util/src/Application.cpp b/Util/src/Application.cpp index 0bda8e1e9..bba03574f 100644 --- a/Util/src/Application.cpp +++ b/Util/src/Application.cpp @@ -134,7 +134,7 @@ void Application::init(int argc, char* pArgv[]) } -#if !defined(POCO_NO_WSTRING) +#if defined (POCO_OS_FAMILY_WINDOWS) && !defined(POCO_NO_WSTRING) void Application::init(int argc, wchar_t* argv[]) { std::vector args;