ref: 7ac818f41e392559511f9eeab24542d1c935d54b
parent: ae6e15c80aa3700300828afe172fd5fad3b9cdc5
author: Paul Brossier <piem@piem.org>
date: Thu Oct 1 04:22:29 EDT 2009
tests/src: include stdio.h as needed, add HAVE_LIBSAMPLERATE
--- a/tests/src/test-beattracking.c
+++ b/tests/src/test-beattracking.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <aubio.h>
int main(){
--- a/tests/src/test-resample.c
+++ b/tests/src/test-resample.c
@@ -1,6 +1,7 @@
#include <aubio.h>
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 @@
del_fvec(in);
del_fvec(out);
+#endif /* HAVE_LIBSAMPLERATE */
return 0;
}
--- a/tests/src/test-tempo.c
+++ b/tests/src/test-tempo.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <aubio.h>
int main(){
--- 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 <stdio.h>
#include <aubio.h>
int main(){