diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index 8469ea701d..9f79fe8f8f 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -29,8 +29,11 @@ #endif #ifndef WX_PRECOMP +#include "wx/wx.h" #endif //WX_PRECOMP +#if wxUSE_POPUPWIN + #include "wx/popupwin.h" #include "wx/msw/private.h" // for GetDesktopWindow() @@ -85,3 +88,5 @@ WXHWND wxPopupWindow::MSWGetParent() const return (WXHWND)::GetDesktopWindow(); } +#endif // #if wxUSE_POPUPWIN +