From fe3dff8aa64b21cc0e2cc5d0bff16ce51594b132 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2023 00:19:01 +0100 Subject: [PATCH] Add forgotten wxUSE_VALIDATORS checks Compilation with wxUSE_VALIDATORS==0 would have failed after the recent changes, so fix this by adding the missing check. See #23312. (cherry picked from commit 623591823d503a46a843503c126d2bfc542fef3f) --- src/generic/datectlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 2195724909..2080c01916 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -54,6 +54,8 @@ namespace { +#if wxUSE_VALIDATORS + class DateValidator : public wxValidator { public: @@ -108,6 +110,8 @@ private: const wxString m_format; }; +#endif // wxUSE_VALIDATORS + } // anonymous namespace class wxCalendarComboPopup : public wxCalendarCtrl,