From: Paul Brossier Date: Tue, 14 Mar 2017 04:50:33 +0000 (+0100) Subject: src/synth/sampler.c: check if we have pthread X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=b4ff97e92e0b00b5f7f0d28a242bc99821b613ea;p=aubio.git src/synth/sampler.c: check if we have pthread --- 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 {