src/synth/sampler.c: check if we have pthread
authorPaul Brossier <piem@piem.org>
Tue, 14 Mar 2017 04:50:33 +0000 (05:50 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 14 Mar 2017 04:50:33 +0000 (05:50 +0100)
src/synth/sampler.c

index ef3b476..9e19973 100644 (file)
 #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 <pthread.h>
+#else
+// FIXME add support for threading on windows
+#warning "compiling sampler without threading"
 #endif
 
 typedef enum {