]> git.saurik.com Git - wxWidgets.git/commitdiff
check for wxUSE_MDI which is needed by this code (patch 1656080)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Feb 2007 03:04:19 +0000 (03:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Feb 2007 03:04:19 +0000 (03:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/include/wx/gizmos/dynamicsash.h
contrib/src/gizmos/dynamicsash.cpp

index 617463e76ceaa79caa7e8bd825a9b25b5eaa1771..2d5da5c8b0b72595a06fe873179bf83d945c54ef 100644 (file)
 
 #include "wx/gizmos/gizmos.h"
 
+#if !wxUSE_MDI
+#    error "wxUSE_MDI must be defined for gizmos to compile."
+#endif /* !wxUSE_MDI */
+
+
 /*
 
     wxDynamicSashWindow
index 137d00cc4e2fdc5970f418c8175f2247c490ffae..527f103cdd9dd5a6bdfc2b885c18761febf12266 100644 (file)
@@ -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