From e3e817d4acf3c5fa067f4f561c2a6cee161f61c5 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Sun, 7 Nov 2004 01:03:08 +0000 Subject: [PATCH] [ 1057587 ] MacOSX build fails with --disable-gauge or --disable-spinbtn git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/gauge.cpp | 4 ++++ src/mac/carbon/window.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index 9c7fc023ae..6e9ed032f2 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -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 + diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 8d5f618255..c7caab3709 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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() ; -- 2.45.2