diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index fe8483d5c6..5376d6f3dc 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -20,6 +20,8 @@ #include "wx/timer.h" #endif +#if wxUSE_FSWATCHER + #include "wx/evtloop.h" #include "wx/filename.h" #include "wx/filefn.h" @@ -1008,3 +1010,5 @@ void FileSystemWatcherTestCase::TestNoEventsAfterRemove() NoEventsAfterRemoveEventTester tester; tester.Run(); } + +#endif // wxUSE_FSWATCHER