diff options
author | Max Kellermann <max@duempel.org> | 2008-10-17 21:13:23 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-17 21:13:23 +0200 |
commit | 25b5d90e448146b6efaf4926680e35aee4a0af6c (patch) | |
tree | 6567bb91758598aa4214bd1939c78487806456a9 /src/tag_id3.h | |
parent | 4984639b7255d72e272f278c95adb1a2cf71b61c (diff) | |
download | mpd-25b5d90e448146b6efaf4926680e35aee4a0af6c.tar.gz mpd-25b5d90e448146b6efaf4926680e35aee4a0af6c.tar.xz mpd-25b5d90e448146b6efaf4926680e35aee4a0af6c.zip |
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 '')
-rw-r--r-- | src/tag_id3.h | 13 |
1 files changed, 12 insertions, 1 deletions
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 |