From 784112a0756cde8badaeb69b50b6dc08f945116b Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 13 Jan 2008 19:34:49 +0000 Subject: [PATCH] Fixed the red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16083 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/tagcache.c b/apps/tagcache.c index 044fcab6e7..089161abab 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -299,6 +299,7 @@ bool tagcache_is_sorted_tag(int type) return false; } +#ifdef HAVE_DIRCACHE /** * Returns true if specified flag is still present, i.e., dircache * has not been reloaded. @@ -307,6 +308,7 @@ static bool is_dircache_intact(void) { return dircache_get_appflag(DIRCACHE_APPFLAG_TAGCACHE); } +#endif static int open_tag_fd(struct tagcache_header *hdr, int tag, bool write) { @@ -1301,8 +1303,13 @@ bool tagcache_search_add_clause(struct tagcache_search *tcs, return true; } +/* TODO: Remove this mess. */ +#ifdef HAVE_DIRCACHE #define TAG_FILENAME_RAM(tcs) ((tcs->type == tag_filename) \ ? ((flag & FLAG_DIRCACHE) && is_dircache_intact()) : 1) +#else +#define TAG_FILENAME_RAM(tcs) (tcs->type != tag_filename) +#endif static bool get_next(struct tagcache_search *tcs) {