Fix build with wxUSE_VARIANT==0

wxPropertyGrid and wxRichTextCtlr depend on wxVariant.
This commit is contained in:
Artur Wieczorek 2019-07-12 19:18:24 +02:00
parent fe0d81a376
commit 6898abf8d6

View File

@ -2373,8 +2373,27 @@
# define wxUSE_LONLONG 1
# endif
# endif
# if !wxUSE_VARIANT
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxRichTextCtrl requires wxUSE_VARIANT"
# else
# undef wxUSE_VARIANT
# define wxUSE_VARIANT 1
# endif
# endif
#endif /* wxUSE_RICHTEXT */
#if wxUSE_PROPGRID
# if !wxUSE_VARIANT
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxPropertyGrid requires wxUSE_VARIANT"
# else
# undef wxUSE_VARIANT
# define wxUSE_VARIANT 1
# endif
# endif
#endif /* wxUSE_PROPGRID */
#endif /* wxUSE_GUI */
#endif /* _WX_CHKCONF_H_ */