]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/spinbutt.cpp
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / src / os2 / spinbutt.cpp
index df775d9b3a950ca8443cbe0bb99d846826e71743..99e5852636d1ec34bd7e8fac10887f800cbd4fe9 100644 (file)
@@ -9,6 +9,11 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#ifdef __GNUG__
+    #pragma implementation "spinbutt.h"
+    #pragma implementation "spinbutbase.h"
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
     #include "wx/wx.h"
 #endif
+#if wxUSE_SPINBTN
 
 // Can't resolve reference to CreateUpDownControl in
 // TWIN32, but could probably use normal CreateWindow instead.
 
 
 #include "wx/spinbutt.h"
+
+IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
+
 #include "wx/os2/private.h"
 
 // ============================================================================
@@ -32,9 +41,7 @@
 // wxWin macros
 // ----------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
-#endif
 
 bool wxSpinButton::Create(
   wxWindow*                         parent
@@ -153,3 +160,4 @@ bool wxSpinButton::OS2Command(WXUINT cmd, WXWORD id)
     return FALSE;
 }
 
+#endif //wxUSE_SPINBTN