From: Vadim Zeitlin Date: Tue, 14 Aug 2007 21:31:26 +0000 (+0000) Subject: check for wxUSE_ACCESSIBILITY not being set to 1 under non-MSW platforms X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9c64a1b2e9b00e0a09dc2ed5964b86625614f8e check for wxUSE_ACCESSIBILITY not being set to 1 under non-MSW platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 437ccd8ac4..a8749d7371 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -319,6 +319,14 @@ # endif #endif /* !defined(wxUSE_ACCEL) */ +#ifndef wxUSE_ACCESSIBILITY +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_ACCESSIBILITY must be defined." +# else +# define wxUSE_ACCESSIBILITY 0 +# endif +#endif /* !defined(wxUSE_ACCESSIBILITY) */ + #ifndef wxUSE_ANIMATIONCTRL # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_ANIMATIONCTRL must be defined." @@ -1232,6 +1240,15 @@ */ #if wxUSE_GUI +#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW" +# else +# undef wxUSE_ACCESSIBILITY +# define wxUSE_ACCESSIBILITY 0 +# endif +#endif /* wxUSE_ACCESSIBILITY */ + #if wxUSE_BUTTON || \ wxUSE_CALENDARCTRL || \ wxUSE_CARET || \