From f3bb92cb4945c516e924148fe8a21031fa49e54d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 23 Feb 2014 13:05:25 -0300 Subject: [PATCH] tests/src/io/test-sink_sndfile-multi.c: fix flags --- tests/src/io/test-sink_sndfile-multi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/src/io/test-sink_sndfile-multi.c b/tests/src/io/test-sink_sndfile-multi.c index 8464f779..4dcc6909 100644 --- a/tests/src/io/test-sink_sndfile-multi.c +++ b/tests/src/io/test-sink_sndfile-multi.c @@ -1,5 +1,6 @@ #define AUBIO_UNSTABLE 1 #include +#include "config.h" #include "utils_tests.h" // this file uses the unstable aubio api, please use aubio_sink instead @@ -16,7 +17,7 @@ int main (int argc, char **argv) return err; } -#ifdef __APPLE__ +#ifdef HAVE_SNDFILE uint_t samplerate = 0; uint_t channels = 0; uint_t hop_size = 512; @@ -73,6 +74,6 @@ beach_source: #else err = 3; PRINT_ERR("aubio was not compiled with aubio_sink_sndfile\n"); -#endif /* __APPLE__ */ +#endif /* HAVE_SNDFILE */ return err; } -- 2.11.0