shithub: aubio

Download patch

ref: 1081580aa62623a53e31fd4673989b143c52c62d
parent: 9906b3f3f22649481dc60d3bcefedea5440225b3
author: Paul Brossier <piem@piem.org>
date: Fri Jan 6 13:50:52 EST 2012

examples/sndfileio.c: do not compile if sndfile is missing

--- a/examples/sndfileio.c
+++ b/examples/sndfileio.c
@@ -18,6 +18,8 @@
 
 */
 
+#ifdef HAVE_SNDFILE
+
 #include <string.h>
 
 #include <sndfile.h>
@@ -247,3 +249,4 @@
         AUBIO_DBG("format   : %d\n", f->format);
 }
 
+#endif /* HAVE_SNDFILE */