summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/filetree.c2
-rw-r--r--firmware/common/filefuncs.c5
-rw-r--r--tools/database/SOURCES1
-rw-r--r--uisimulator/common/io.c7
4 files changed, 7 insertions, 8 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index 1dc510f8c7..9781f8396a 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -290,7 +290,9 @@ int ft_load(struct tree_context* c, const char* tempdir)
if (!entry)
break;
+ DEBUGF("aaa\n");
info = dir_get_info(dir, entry);
+ DEBUGF("ccc\n");
len = strlen((char *)entry->d_name);
/* skip directories . and .. */
diff --git a/firmware/common/filefuncs.c b/firmware/common/filefuncs.c
index 2e3894b2c4..19b8eff612 100644
--- a/firmware/common/filefuncs.c
+++ b/firmware/common/filefuncs.c
@@ -26,6 +26,7 @@
#include "file.h"
#include "filefuncs.h"
+#ifndef __PCTOOL__
#ifdef HAVE_MULTIVOLUME
/* returns on which volume this is, and copies the reduced name
(sortof a preprocessor for volume-decorated pathnames) */
@@ -88,7 +89,9 @@ bool dir_exists(const char *path)
return true;
}
-#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
+#endif /* __PCTOOL__ */
+
+#if (CONFIG_PLATFORM & (PLATFORM_NATIVE|PLATFORM_SDL))
struct dirinfo dir_get_info(DIR* parent, struct dirent *entry)
{
(void)parent;
diff --git a/tools/database/SOURCES b/tools/database/SOURCES
index e66ea603e1..0abfce61ff 100644
--- a/tools/database/SOURCES
+++ b/tools/database/SOURCES
@@ -8,6 +8,7 @@ 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
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index e512af1c9f..56f1339fbc 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -342,13 +342,6 @@ 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);