summaryrefslogtreecommitdiff
path: root/src/audiofile.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-02 08:12:46 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-02 08:12:46 +0200
commita50452f0159d882348a8456cf50d72b758355332 (patch)
treec1736dd769dd3f3939dd5f5fb1b1c8d105437533 /src/audiofile.cc
parent011143d37aa438a7204c6a4a407db5c49e3fc6c5 (diff)
Don't include sndfile.h if not configured for resampling.
Diffstat (limited to 'src/audiofile.cc')
-rw-r--r--src/audiofile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audiofile.cc b/src/audiofile.cc
index 05b356a..f849b0a 100644
--- a/src/audiofile.cc
+++ b/src/audiofile.cc
@@ -33,8 +33,9 @@
#include <unistd.h>
#include <sndfile.h>
+#ifdef WITH_RESAMPLE
#include <samplerate.h>
-
+#endif/*WITH_RESAMPLE*/
#include <hugin.hpp>
#include "configuration.h"