From 7ac818f41e392559511f9eeab24542d1c935d54b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 1 Oct 2009 08:22:29 +0200 Subject: [PATCH] tests/src: include stdio.h as needed, add HAVE_LIBSAMPLERATE --- tests/src/test-beattracking.c | 1 + tests/src/test-resample.c | 2 ++ tests/src/test-tempo.c | 1 + tests/src/test-tss.c | 1 + 4 files changed, 5 insertions(+) diff --git a/tests/src/test-beattracking.c b/tests/src/test-beattracking.c index 2812a3b0..a14f3042 100644 --- a/tests/src/test-beattracking.c +++ b/tests/src/test-beattracking.c @@ -1,3 +1,4 @@ +#include #include int main(){ diff --git a/tests/src/test-resample.c b/tests/src/test-resample.c index 48a50552..598f05b5 100644 --- a/tests/src/test-resample.c +++ b/tests/src/test-resample.c @@ -1,6 +1,7 @@ #include int main(){ +#if HAVE_LIBSAMPLERATE /* allocate some memory */ uint_t win_s = 1024; /* window size */ uint_t channels = 1; /* number of channel */ @@ -19,5 +20,6 @@ int main(){ del_fvec(in); del_fvec(out); +#endif /* HAVE_LIBSAMPLERATE */ return 0; } diff --git a/tests/src/test-tempo.c b/tests/src/test-tempo.c index 19abf681..0b713332 100644 --- a/tests/src/test-tempo.c +++ b/tests/src/test-tempo.c @@ -1,3 +1,4 @@ +#include #include int main(){ diff --git a/tests/src/test-tss.c b/tests/src/test-tss.c index a9cc335e..4e8bd4ce 100644 --- a/tests/src/test-tss.c +++ b/tests/src/test-tss.c @@ -5,6 +5,7 @@ * a delay equal to the window size, hop_s. */ +#include #include int main(){ -- 2.26.2