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
This commit is contained in:
Vadim Zeitlin
2005-02-20 19:15:43 +00:00
parent b39c4812ca
commit 1bbcb0d516

View File

@@ -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
*/