From f8a280159dcd2d6a98d8b5722645f9cb11c96c73 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 11 Feb 2007 03:04:19 +0000 Subject: [PATCH] check for wxUSE_MDI which is needed by this code (patch 1656080) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/gizmos/dynamicsash.h | 5 +++++ contrib/src/gizmos/dynamicsash.cpp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/contrib/include/wx/gizmos/dynamicsash.h b/contrib/include/wx/gizmos/dynamicsash.h index 617463e76c..2d5da5c8b0 100644 --- a/contrib/include/wx/gizmos/dynamicsash.h +++ b/contrib/include/wx/gizmos/dynamicsash.h @@ -15,6 +15,11 @@ #include "wx/gizmos/gizmos.h" +#if !wxUSE_MDI +# error "wxUSE_MDI must be defined for gizmos to compile." +#endif /* !wxUSE_MDI */ + + /* wxDynamicSashWindow diff --git a/contrib/src/gizmos/dynamicsash.cpp b/contrib/src/gizmos/dynamicsash.cpp index 137d00cc4e..527f103cdd 100644 --- a/contrib/src/gizmos/dynamicsash.cpp +++ b/contrib/src/gizmos/dynamicsash.cpp @@ -13,6 +13,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" +#if !wxUSE_MDI + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -1469,3 +1471,4 @@ wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(const wxDynamicSashRepare IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent) +#endif // !wxUSE_MDI \ No newline at end of file -- 2.45.2