From a23dd7fd52af1f370bc53adf81605ec9f4476ec2 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Tue, 29 Nov 2011 04:56:42 +0000 Subject: [PATCH] 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 --- apps/plugin.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 3cc9e6c413..f5aa589072 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -98,16 +98,6 @@ static off_t app_filesize(int fd) { return filesize(fd); } - -static int app_closedir(DIR *dirp) -{ - return closedir(dirp); -} - -static struct dirent *app_readdir(DIR *dirp) -{ - return readdir(dirp); -} #endif #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, /* dir */ - (opendir_func)PREFIX(opendir), - (closedir_func)PREFIX(closedir), - (readdir_func)PREFIX(readdir), - PREFIX(mkdir), - PREFIX(rmdir), + (opendir_func)opendir, + (closedir_func)closedir, + (readdir_func)readdir, + mkdir, + rmdir, dir_exists, dir_get_info,