summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2008-01-13 19:34:49 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2008-01-13 19:34:49 +0000
commit784112a0756cde8badaeb69b50b6dc08f945116b (patch)
tree9f19aa09b019aa918ac8658da20baa04acc190b7 /apps
parent7aedb02fccb98b0a2362046d2694be12b2b0ede7 (diff)
downloadrockbox-784112a0756cde8badaeb69b50b6dc08f945116b.tar.gz
rockbox-784112a0756cde8badaeb69b50b6dc08f945116b.zip
Fixed the red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c7
1 files changed, 7 insertions, 0 deletions
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)
{