]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
mingw32 compilation fixes
[wxWidgets.git] / src / os2 / gauge.cpp
index 00ab8236bff185b5fc7f7f968cb61b8cc3550f5e..d8185a69d90b4dc6a9f03d949c73fce3dad32e33 100644 (file)
@@ -57,7 +57,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
            const wxPoint& pos,
            const wxSize& size,
            long style,
+#if wxUSE_VALIDATORS
            const wxValidator& validator,
+#endif
            const wxString& name)
 {
     static bool wxGaugeOS2Initialised = FALSE;
@@ -73,7 +75,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
     }
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif
     if (parent) parent->AddChild(this);
     m_rangeMax = range;
     m_gaugePos = 0;