Check for wxUSE_RICHTEXT dependencies in wx/chkconf.h.

wxRichTextCtrl requires wxHTML and wxLongLong, check for the options
consistency.

See #16939.
This commit is contained in:
Artur Wieczorek 2015-04-05 10:16:42 +02:00 committed by Vadim Zeitlin
parent 93b9126fe5
commit a679d0440c

View File

@ -2269,6 +2269,25 @@
# endif
#endif /* wxUSE_STC */
#if wxUSE_RICHTEXT
# if !wxUSE_HTML
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxRichTextCtrl requires wxUSE_HTML"
# else
# undef wxUSE_RICHTEXT
# define wxUSE_RICHTEXT 0
# endif
# endif
# if !wxUSE_LONGLONG
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxRichTextCtrl requires wxUSE_LONLONG"
# else
# undef wxUSE_LONLONG
# define wxUSE_LONLONG 1
# endif
# endif
#endif /* wxUSE_RICHTEXT */
#endif /* wxUSE_GUI */
#endif /* _WX_CHKCONF_H_ */