From 710ccb7b483da9be9543ea40a99dee7fd6f8fa98 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 25 Oct 2006 10:17:57 +0000 Subject: ifdef all the tagcache code, allows rombox to be compiled again, Thanks Austin Appel git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11338 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 838a485..4249fd0 100644 --- a/apps/main.c +++ b/apps/main.c @@ -60,8 +60,10 @@ #include "misc.h" #include "database.h" #include "dircache.h" +#ifdef HAVE_TAGCACHE #include "tagcache.h" #include "tagtree.h" +#endif #include "lang.h" #include "string.h" #include "splash.h" @@ -169,6 +171,7 @@ int init_dircache(bool preinit) #endif } +#ifdef HAVE_TAGCACHE void init_tagcache(void) { bool clear = false; @@ -204,6 +207,7 @@ void init_tagcache(void) show_logo(); } } +#endif #ifdef SIMULATOR @@ -230,7 +234,9 @@ void init(void) settings_apply(); init_dircache(true); init_dircache(false); +#ifdef HAVE_TAGCACHE init_tagcache(); +#endif sleep(HZ/2); tree_init(); playlist_init(); @@ -436,16 +442,19 @@ void init(void) #endif settings_load(SETTINGS_ALL); - if (init_dircache(true) < 0) { +#ifdef HAVE_TAGCACHE remove(TAGCACHE_STATEFILE); +#endif } gui_sync_wps_init(); settings_apply(); init_dircache(false); +#ifdef HAVE_TAGCACHE init_tagcache(); +#endif #ifdef HAVE_EEPROM_SETTINGS if (firmware_settings.initialized) -- cgit v1.1