From: Paul Brossier Date: Thu, 1 Oct 2009 06:22:29 +0000 (+0200) Subject: tests/src: include stdio.h as needed, add HAVE_LIBSAMPLERATE X-Git-Tag: bzr2git~244 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ac818f41e392559511f9eeab24542d1c935d54b;p=aubio.git tests/src: include stdio.h as needed, add HAVE_LIBSAMPLERATE --- 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(){