aboutsummaryrefslogtreecommitdiff
path: root/src/tag_id3.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 21:13:23 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 21:13:23 +0200
commit25b5d90e448146b6efaf4926680e35aee4a0af6c (patch)
tree6567bb91758598aa4214bd1939c78487806456a9 /src/tag_id3.h
parent4984639b7255d72e272f278c95adb1a2cf71b61c (diff)
Makefile.am: don't compile disabled sources
If a feature is disabled, don't compile the source file at all, disable it completely in Makefile.am instead.
Diffstat (limited to 'src/tag_id3.h')
-rw-r--r--src/tag_id3.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tag_id3.h b/src/tag_id3.h
index 807dbfb3..4140896b 100644
--- a/src/tag_id3.h
+++ b/src/tag_id3.h
@@ -26,8 +26,19 @@ struct tag;
#ifdef HAVE_ID3TAG
struct id3_tag;
struct tag *tag_id3_import(struct id3_tag *);
-#endif
struct tag *tag_id3_load(const char *file);
+#else
+
+#include "gcc.h"
+
+static inline struct tag *
+tag_id3_load(mpd_unused const char *file)
+{
+ return NULL;
+}
+
+#endif
+
#endif