Disable wxUSE_ACTIVITYINDICATOR if wxUSE_GRAPHICS_CONTEXT==0.

wxActivityIndicatorImpl requires wxGraphicsContext to compile successfully (it
is used to implement anti-aliased drawing of the control).

Add a check to enforce this.

Closes #16921
This commit is contained in:
Artur Wieczorek
2015-03-21 23:51:57 +01:00
committed by Vadim Zeitlin
parent 9a69377d3e
commit ecbfa2c122

View File

@@ -2247,6 +2247,15 @@
# endif
#endif /* wxUSE_PREFERENCES_EDITOR */
#if wxUSE_ACTIVITYINDICATOR && !wxUSE_GRAPHICS_CONTEXT
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_ACTIVITYINDICATOR requires wxGraphicsContext"
# else
# undef wxUSE_ACTIVITYINDICATOR
# define wxUSE_ACTIVITYINDICATOR 0
# endif
#endif /* wxUSE_ACTIVITYINDICATOR */
#endif /* wxUSE_GUI */
#endif /* _WX_CHKCONF_H_ */