#include "wx/clipbrd.h"
 #include "wx/os2/private.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
-#endif
 
 bool wxComboBox::OS2Command(WXUINT param, WXWORD WXUNUSED(id))
 {
                         const wxSize& size,
                         int n, const wxString choices[],
                         long style,
+#if wxUSE_VALIDATORS
                         const wxValidator& validator,
+#endif
                         const wxString& name)
 {
   SetName(name);
+#if wxUSE_VALIDATORS
   SetValidator(validator);
+#endif
   if (parent) parent->AddChild(this);
   SetBackgroundColour(parent->GetBackgroundColour()) ;
   SetForegroundColour(parent->GetForegroundColour()) ;