Add check for wxUSE_ADDREMOVECTRL dependency on wxUSE_BMPBUTTON.

This should, in particular, fix the currently broken wxiOS build as
wxBitmapButton is not available in that port.
This commit is contained in:
Vadim Zeitlin 2015-04-06 22:15:26 +02:00
parent 89a791a938
commit 8577366bae

View File

@ -1538,6 +1538,17 @@
# endif
#endif /* controls */
#if wxUSE_ADDREMOVECTRL
# if !wxUSE_BMPBUTTON
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_ADDREMOVECTRL requires wxUSE_BMPBUTTON"
# else
# undef wxUSE_ADDREMOVECTRL
# define wxUSE_ADDREMOVECTRL 0
# endif
# endif
#endif /* wxUSE_ADDREMOVECTRL */
#if wxUSE_BMPBUTTON
# if !wxUSE_BUTTON
# ifdef wxABORT_ON_CONFIG_ERROR