From 0a5f6e07f5aab5784691a7780d25bf8d196b2e42 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 2 Jan 2017 20:23:33 -0800 Subject: [PATCH] build fix for wxUSE_WINRT==0 --- src/msw/notifmsg.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/msw/notifmsg.cpp b/src/msw/notifmsg.cpp index 000c3aba29..9bced2bbf5 100644 --- a/src/msw/notifmsg.cpp +++ b/src/msw/notifmsg.cpp @@ -341,15 +341,25 @@ bool wxNotificationMessage::MSWUseToasts( const wxString& shortcutPath, const wxString& appId) { +#if wxUSE_WINRT return wxToastNotificationHelper::UseToasts(shortcutPath, appId); +#else + wxUnusedVar(shortcutPath); + wxUnusedVar(appId); + return false; +#endif } void wxNotificationMessage::Init() { +#if wxUSE_WINRT if ( wxToastNotificationHelper::IsEnabled() ) m_impl = wxToastNotificationHelper::CreateInstance(this); else +#endif + { m_impl = new wxBalloonNotifMsgImpl(this); + } } #endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON