]> git.saurik.com Git - wxWidgets.git/commitdiff
now survives compilation even if wxUSE_SASH == 0
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 13 Dec 1999 16:17:09 +0000 (16:17 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 13 Dec 1999 16:17:09 +0000 (16:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/sashwin.cpp

index df44939ecb400619b12dab6c33952562393ecadf..ce5219a7132175768129330052b23552e51b0e76 100644 (file)
@@ -26,9 +26,7 @@
 #include "wx/wx.h"
 #endif
 
-#if !wxUSE_SASH
-    #error "Thisfile requires wxUSE_SASH to be defined."
-#endif // wxUSE_SASH
+#if wxUSE_SASH
 
 #include <math.h>
 #include <stdlib.h>
@@ -671,3 +669,4 @@ void wxSashWindow::SetSashVisible(wxSashEdgePosition edge, bool sash)
         m_sashes[edge].m_margin = 0;
 }
 
+#endif // wxUSE_SASH