]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1057587 ] MacOSX build fails with --disable-gauge or --disable-spinbtn
authorRyan Norton <wxprojects@comcast.net>
Sun, 7 Nov 2004 01:03:08 +0000 (01:03 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sun, 7 Nov 2004 01:03:08 +0000 (01:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/gauge.cpp
src/mac/carbon/window.cpp

index 9c7fc023ae166af6e9b882bdf57c7844cee84926..6e9ed032f27f81b6f2784441c3447a22aa29341c 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "wx/gauge.h"
 
+#if wxUSE_GAUGE 
+
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
 #endif
@@ -79,3 +81,5 @@ int wxGauge::GetValue() const
     return m_gaugePos ;
 }
 
+#endif // wxUSE_GAUGE 
+
index 8d5f618255fe14bdafed9aa74cb3bd8b13f04816..c7caab3709c42d1c1143f41815e32939dd0dc389 100644 (file)
@@ -1720,10 +1720,12 @@ wxSize wxWindowMac::DoGetBestSize() const
         {
             bestsize.bottom = 16 ;
         }
+#if wxUSE_SPINBTN 
         else if ( IsKindOf( CLASSINFO( wxSpinButton ) ) )
         {
             bestsize.bottom = 24 ;
         }
+#endif // wxUSE_SPINBTN 
         else
         {
             // return wxWindowBase::DoGetBestSize() ;