diff options
Diffstat (limited to 'lib/worker.cpp')
-rw-r--r-- | lib/worker.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/worker.cpp b/lib/worker.cpp index 3c12caa..fd255c7 100644 --- a/lib/worker.cpp +++ b/lib/worker.cpp @@ -1,8 +1,9 @@ #include "worker.h" -#include "work.h" -#include <algorithm> -#include <iterator> -#include <mutex> +#if __cpp_lib_semaphore +# include "work.h" +# include <algorithm> +# include <iterator> +# include <mutex> Worker::Worker() : todoLen {0} { @@ -44,3 +45,4 @@ Worker::worker() j->doWork(); } } +#endif |