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