diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index f239be1003..ab53b6c04b 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -9,6 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#if wxUSE_SLIDER + #include "wx/app.h" #include "wx/slider.h" @@ -39,3 +41,4 @@ wxSlider::~wxSlider() SetNSView(NULL); } +#endif // wxUSE_SLIDER