From b4ff97e92e0b00b5f7f0d28a242bc99821b613ea Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 14 Mar 2017 05:50:33 +0100 Subject: [PATCH] src/synth/sampler.c: check if we have pthread --- src/synth/sampler.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/synth/sampler.c b/src/synth/sampler.c index ef3b476b..9e19973b 100644 --- a/src/synth/sampler.c +++ b/src/synth/sampler.c @@ -28,14 +28,12 @@ #include "effects/timestretch.h" #include "synth/sampler.h" +#ifdef HAVE_PTHREAD_H #define HAVE_THREADS 1 -#define READER_THREAD_ON 1 -#if 0 -#undef HAVE_THREADS -#endif - -#ifdef HAVE_THREADS #include +#else +// FIXME add support for threading on windows +#warning "compiling sampler without threading" #endif typedef enum { -- 2.11.0