Check for dependency of wxAnimationCtrl on wxStreams
Disable the compilation of wxAnimationCtrl if stream support was disabled, it's impossible to load animations without it. See #17159.
This commit is contained in:
parent
02c8973a57
commit
bf41f447bf
@ -1549,6 +1549,17 @@
|
||||
# endif
|
||||
#endif /* wxUSE_ADDREMOVECTRL */
|
||||
|
||||
#if wxUSE_ANIMATIONCTRL
|
||||
# if !wxUSE_STREAMS
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_ANIMATIONCTRL requires wxUSE_STREAMS"
|
||||
# else
|
||||
# undef wxUSE_ANIMATIONCTRL
|
||||
# define wxUSE_ANIMATIONCTRL 0
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_ANIMATIONCTRL */
|
||||
|
||||
#if wxUSE_BMPBUTTON
|
||||
# if !wxUSE_BUTTON
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
|
Loading…
Reference in New Issue
Block a user