X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4669dcb2163d2df6dc7187d813c481556402660b..baec3aee005c382ce1d062725022b6349c97540b:/include/wx/chkconf.h diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index f3d93c1127..361ba6b539 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 */