X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60bea0cfb5861737b367ca483295ea4ad3c1d8ed..61f3feadce9f831630aa7518d31d18a2e50f7253:/include/wx/chkconf.h diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index fbccbd0be4..d93f2eab61 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -40,6 +40,21 @@ # define wxUSE_GUI 1 #endif /* !defined(wxUSE_GUI) */ +/* + If we're compiling without support for threads/exceptions we have to + disable the corresponding features. + */ +#ifdef wxNO_THREADS +# undef wxUSE_THREADS +# define wxUSE_THREADS 0 +#endif /* wxNO_THREADS */ + +#ifdef wxNO_EXCEPTIONS +# undef wxUSE_EXCEPTIONS +# define wxUSE_EXCEPTIONS 0 +#endif /* wxNO_EXCEPTIONS */ + + /* tests for non GUI features */ @@ -341,6 +356,14 @@ # endif #endif /* !defined(wxUSE_DATAOBJ) */ +#ifndef wxUSE_DATEPICKCTRL +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_DATEPICKCTRL must be defined." +# else +# define wxUSE_DATEPICKCTRL 0 +# endif +#endif /* !defined(wxUSE_DATEPICKCTRL) */ + #ifndef wxUSE_DISPLAY # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_DISPLAY must be defined." @@ -1645,5 +1668,14 @@ # endif #endif /* wxUSE_XRC */ +#if wxUSE_SOCKETS && !wxUSE_STOPWATCH +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH" +# else +# undef wxUSE_SOCKETS +# define wxUSE_SOCKETS 0 +# endif +#endif /* wxUSE_SOCKETS */ + #endif /* wxUSE_GUI */