diff libinterp/dldfcn/audiowrite.cc @ 19507:2e174b5e7703

Fix audiodevinfo, audioinfo, audioread and audiowrite build process * audiodevinfo.cc: added bits_to_format utility function * audioinfo.cc, audioread.cc, audiowrite.cc: make sure to not attempt to include sndfile.h if it is not present
author Vytautas Jančauskas <unaudio@gmail.com>
date Wed, 11 Sep 2013 22:05:47 +0300
parents 9161b7653392
children 93f26237c30b
line wrap: on
line diff
--- a/libinterp/dldfcn/audiowrite.cc	Wed Sep 11 21:32:14 2013 +0300
+++ b/libinterp/dldfcn/audiowrite.cc	Wed Sep 11 22:05:47 2013 +0300
@@ -1,6 +1,8 @@
 #include "oct.h"
 #include "ov-struct.h"
-#include <sndfile.h>
+#ifdef HAVE_SNDFILE
+  #include <sndfile.h>
+#endif
 #include <string>
 #include <map>