FS#12414 : Fix directory functions in plugins on targets which HAVE_DIRCACHE. In rockbox_api, PREFIX( ) is removed around directory functions because that's now handled in directory header files. Thanks to Fred Bauer for reporting this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31089 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Boris Gjenero 2011-11-29 04:56:42 +00:00
parent d51e598335
commit a23dd7fd52

View file

@ -98,16 +98,6 @@ static off_t app_filesize(int fd)
{ {
return filesize(fd); return filesize(fd);
} }
static int app_closedir(DIR *dirp)
{
return closedir(dirp);
}
static struct dirent *app_readdir(DIR *dirp)
{
return readdir(dirp);
}
#endif #endif
#if defined(HAVE_PLUGIN_CHECK_OPEN_CLOSE) && (MAX_OPEN_FILES>32) #if defined(HAVE_PLUGIN_CHECK_OPEN_CLOSE) && (MAX_OPEN_FILES>32)
@ -385,11 +375,11 @@ static const struct plugin_api rockbox_api = {
filetype_get_attr, filetype_get_attr,
/* dir */ /* dir */
(opendir_func)PREFIX(opendir), (opendir_func)opendir,
(closedir_func)PREFIX(closedir), (closedir_func)closedir,
(readdir_func)PREFIX(readdir), (readdir_func)readdir,
PREFIX(mkdir), mkdir,
PREFIX(rmdir), rmdir,
dir_exists, dir_exists,
dir_get_info, dir_get_info,