From 2a371515df0ee1a0340a6c2e718cf093351c7f0d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 22 Dec 2016 22:13:34 -0800 Subject: [PATCH] Fix build error with wxUSE_NOTIFICATION_MESSAGE==0 --- src/msw/rt/notifmsgrt.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/msw/rt/notifmsgrt.cpp b/src/msw/rt/notifmsgrt.cpp index cbf9ae1817..15482819a1 100644 --- a/src/msw/rt/notifmsgrt.cpp +++ b/src/msw/rt/notifmsgrt.cpp @@ -13,13 +13,14 @@ #pragma hdrstop #endif +#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT + #ifndef WX_PRECOMP #include "wx/string.h" #endif // WX_PRECOMP #include "wx/msw/rt/private/notifmsg.h" -#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT #include "wx/notifmsg.h" #include "wx/msw/rt/utils.h" #include "wx/msw/private/comptr.h" @@ -507,8 +508,6 @@ private: wxIMPLEMENT_DYNAMIC_CLASS(wxToastNotifMsgModule, wxModule); -#endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT - // // wxToastNotificationHelper // @@ -543,3 +542,5 @@ wxNotificationMessageImpl* wxToastNotificationHelper::CreateInstance(wxNotificat return NULL; #endif } + +#endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_WINRT