X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/764a3a49068a94d1edb96f299b10c155d101c1b0..45016e1a6bfed375993470efa844b94a42a41c73:/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__