[easytag/easytag-2-2] Fix compilation if TagLib is not available
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix compilation if TagLib is not available
- Date: Sun, 13 Apr 2014 07:58:53 +0000 (UTC)
commit fae43185e5d6beb78167c7c9ad7bfc4acf2451cb
Author: David King <amigadave amigadave com>
Date: Sun Apr 13 08:58:09 2014 +0100
Fix compilation if TagLib is not available
Thanks to Abhinav for the report.
src/gio_wrapper.cc | 6 ++++++
src/gio_wrapper.h | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gio_wrapper.cc b/src/gio_wrapper.cc
index 9599494..569c0d5 100644
--- a/src/gio_wrapper.cc
+++ b/src/gio_wrapper.cc
@@ -17,6 +17,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include "config.h"
+
+#ifdef ENABLE_MP4
+
#include "gio_wrapper.h"
GIO_InputStream::GIO_InputStream (GFile * file_) :
@@ -471,3 +475,5 @@ const GError *GIO_IOStream::getError () const
{
return error;
}
+
+#endif /* ENABLE_MP4 */
diff --git a/src/gio_wrapper.h b/src/gio_wrapper.h
index dc6c9da..e49e54d 100644
--- a/src/gio_wrapper.h
+++ b/src/gio_wrapper.h
@@ -20,6 +20,10 @@
#ifndef ET_GIO_WRAPPER_H_
#define ET_GIO_WRAPPER_H_
+#include "config.h"
+
+#ifdef ENABLE_MP4
+
#include <tiostream.h>
#include <gio/gio.h>
@@ -79,4 +83,6 @@ private:
GError *error;
};
+#endif /* ENABLE_MP4 */
+
#endif /* ET_GIO_WRAPPER_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]