Redo previous commit to not break android builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27972 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-09-01 22:06:03 +00:00
parent 4ada1ee44e
commit a4264eb89a
3 changed files with 9 additions and 4 deletions

View file

@ -54,7 +54,6 @@ int strip_volume(const char* name, char* namecopy)
}
#endif /* #ifdef HAVE_MULTIVOLUME */
#ifndef __PCTOOL__
/* Test file existence, using dircache of possible */
bool file_exists(const char *file)
{
@ -89,10 +88,10 @@ bool dir_exists(const char *path)
return true;
}
#endif /* __PCTOOL__ */
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
struct dirinfo dir_get_info(DIR* parent, struct dirent *entry)
{
(void)parent;
return entry->info;
}
#endif

View file

@ -8,7 +8,6 @@ database.c
../../apps/mp3data.c
../../apps/tagcache.c
../../firmware/common/crc32.c
../../firmware/common/filefuncs.c
../../firmware/common/strlcpy.c
../../firmware/common/strcasestr.c
../../firmware/common/structec.c

View file

@ -347,6 +347,13 @@ struct sim_dirent *sim_readdir(MYDIR *dir)
return &secret;
}
struct dirinfo dir_get_info(DIR* parent, struct sim_dirent *entry)
{
(void)parent;
return entry->info;
}
void sim_closedir(MYDIR *dir)
{
free(dir->name);