From e7678d7d03263beba70ee9c583f012850505dd31 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 29 Mar 2010 20:57:41 +0000 Subject: [PATCH] Add wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW. wxFileSystemWatcher implementation uses threads under MSW and can't be compiled when wxUSE_THREADS==0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/chkconf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 6487865fb1..08a3ffea9f 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -411,6 +411,16 @@ # endif #endif /* !wxUSE_ACTIVEX */ +#if !wxUSE_THREADS +# if wxUSE_FSWATCHER +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxFileSystemWatcher requires wxThread under MSW" +# else +# undef wxUSE_FSWATCHER +# define wxUSE_FSWATCHER 0 +# endif +#endif /* !wxUSE_THREADS */ + #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT # undef wxUSE_POSTSCRIPT # define wxUSE_POSTSCRIPT 1 -- 2.45.2