From: Vadim Zeitlin Date: Sun, 20 Feb 2005 19:15:43 +0000 (+0000) Subject: force wxUSE_THREADS/EXCEPTIONS to 0 if wxNO_THREADS/EXCEPTIONS is defined X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1bbcb0d516a6e5578e53a821074335901ae46e3a force wxUSE_THREADS/EXCEPTIONS to 0 if wxNO_THREADS/EXCEPTIONS is defined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 */