From 4a8d522e29d2cab6b6c0b6e394035187a624d435 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Mon, 16 Oct 2017 23:42:27 -0500 Subject: [PATCH] ifdef windows unicode version of main --- Util/include/Poco/Util/Application.h | 2 +- Util/src/Application.cpp | 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 8f656e71ee..1359727963 100644 --- a/Util/include/Poco/Util/Application.h +++ b/Util/include/Poco/Util/Application.h @@ -139,7 +139,7 @@ class Util_API Application: public Subsystem /// 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 0bda8e1e93..bba03574f9 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;