]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Mar 2010 20:57:41 +0000 (20:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Mar 2010 20:57:41 +0000 (20:57 +0000)
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

index 6487865fb1b461a64ee368e0f75c76cd5fed9b08..08a3ffea9fac46893564108ae4cfd32595d36975 100644 (file)
 #   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