aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_sndfileread.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-11-03 10:20:51 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-11-03 10:20:51 +0000
commitba49f3d781ddda444783b1c99ca65f2148e70a33 (patch)
treee7914bb93cf98072c9dfda7fa65f7e9a43db843c /src/mtx_sndfileread.c
parentf19687f2bd42e6a147f813407db44c145e7bf7b5 (diff)
added checks for sndfile to configure; properly use this in mtx_sndfileread
svn path=/trunk/externals/iem/iemmatrix/; revision=10356
Diffstat (limited to 'src/mtx_sndfileread.c')
-rw-r--r--src/mtx_sndfileread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mtx_sndfileread.c b/src/mtx_sndfileread.c
index 041e2bd..da77506 100644
--- a/src/mtx_sndfileread.c
+++ b/src/mtx_sndfileread.c
@@ -1,7 +1,9 @@
+
+#include "iemmatrix.h"
+
#ifdef HAVE_SNDFILE_H
# include <sndfile.h>
#endif
-#include "iemmatrix.h"
#ifdef __WIN32__
# include <io.h>
@@ -289,9 +291,6 @@ void mtx_sndfileread_setup(void)
class_addmethod(mtx_sndfileread_class, (t_method)mtx_sndfileread_close, gensym("close"), A_NULL, 0);
class_addbang(mtx_sndfileread_class, (t_method)mtx_sndfileread_frame);
class_addfloat(mtx_sndfileread_class, (t_method)mtx_sndfileread_frames);
-#ifndef HAVE_SNDFILE_H
- post("mtx_sndfileread won't work: compiled without libsndfile!");
-#endif
}
void iemtx_sndfileread_setup (void)