X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/764a3a49068a94d1edb96f299b10c155d101c1b0..0ce742cf092c9244f27957e308c16f3c2631042d:/include/wx/validate.h diff --git a/include/wx/validate.h b/include/wx/validate.h index 31cb7a014c..25a4c5894a 100644 --- a/include/wx/validate.h +++ b/include/wx/validate.h @@ -18,6 +18,12 @@ #include "wx/event.h" +#if defined(wxUSE_VALIDATORS) && !wxUSE_VALIDATORS + // wxWindows is compiled without support for wxValidator + class WXDLLEXPORT wxValidator; + #define wxDefaultValidator (*((wxValidator *)NULL)) +#else // wxUSE_VALIDATORS + class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxWindowBase; @@ -78,5 +84,7 @@ private: WXDLLEXPORT_DATA(extern const wxValidator) wxDefaultValidator; +#endif // wxUSE_VALIDATORS + #endif // _WX_VALIDATEH__