From 25b5d90e448146b6efaf4926680e35aee4a0af6c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Oct 2008 21:13:23 +0200 Subject: 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. --- src/tag_id3.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/tag_id3.h') diff --git a/src/tag_id3.h b/src/tag_id3.h index 807dbfb3a..4140896b2 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 -- cgit v1.2.3