From bda8a963ad0ce49f67cb6641bb3b966f770366f3 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Thu, 15 Dec 2011 20:58:14 +0000 Subject: Add conditionals for functions only needed on SWCODEC targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31296 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/id3tags.c | 3 +++ apps/metadata/metadata_parsers.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'apps/metadata') diff --git a/apps/metadata/id3tags.c b/apps/metadata/id3tags.c index 3936502..dcf71f7 100644 --- a/apps/metadata/id3tags.c +++ b/apps/metadata/id3tags.c @@ -92,6 +92,9 @@ static const char* const genres[] = { "Synthpop" }; +#if CONFIG_CODEC != SWCODEC +static +#endif char* id3_get_num_genre(unsigned int genre_num) { if (genre_num < ARRAYLEN(genres)) diff --git a/apps/metadata/metadata_parsers.h b/apps/metadata/metadata_parsers.h index adb7a82..304e393 100644 --- a/apps/metadata/metadata_parsers.h +++ b/apps/metadata/metadata_parsers.h @@ -19,11 +19,14 @@ * ****************************************************************************/ +#if CONFIG_CODEC == SWCODEC char* id3_get_num_genre(unsigned int genre_num); +#endif int getid3v2len(int fd); bool setid3v1title(int fd, struct mp3entry *entry); void setid3v2title(int fd, struct mp3entry *entry); bool get_mp3_metadata(int fd, struct mp3entry* id3); +#if CONFIG_CODEC == SWCODEC bool get_adx_metadata(int fd, struct mp3entry* id3); bool get_aiff_metadata(int fd, struct mp3entry* id3); bool get_flac_metadata(int fd, struct mp3entry* id3); @@ -53,3 +56,4 @@ bool get_hes_metadata(int fd, struct mp3entry* id3); bool get_sgc_metadata(int fd, struct mp3entry* id3); bool get_vgm_metadata(int fd, struct mp3entry* id3); bool get_kss_metadata(int fd, struct mp3entry* id3); +#endif /* CONFIG_CODEC == SWCODEC */ -- cgit v1.1