projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3a113
)
src/synth/sampler.c: check if we have pthread
author
Paul Brossier
<piem@piem.org>
Tue, 14 Mar 2017 04:50:33 +0000
(
05:50
+0100)
committer
Paul Brossier
<piem@piem.org>
Tue, 14 Mar 2017 04:50:33 +0000
(
05:50
+0100)
src/synth/sampler.c
patch
|
blob
|
history
diff --git
a/src/synth/sampler.c
b/src/synth/sampler.c
index
ef3b476
..
9e19973
100644
(file)
--- 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 <pthread.h>
+#else
+// FIXME add support for threading on windows
+#warning "compiling sampler without threading"
#endif
typedef enum {