diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-08-27 12:38:25 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-27 12:38:25 +0000 |
commit | 2c2e261648d5ae1befe5c4f269a655cc06b6e1e9 (patch) | |
tree | 16ea536a547deb252276c29d34eeee08f029866f /apps/tree.h | |
parent | 79798ff5f30dea7419f360e197763abb3b46259a (diff) | |
download | rockbox-2c2e261648d5ae1befe5c4f269a655cc06b6e1e9.tar.gz rockbox-2c2e261648d5ae1befe5c4f269a655cc06b6e1e9.zip |
Use system headers a bit more: use host's fcntl.h for O_RDONLY etc.
Removes the need to fix up those in the simulator.
Also work around some posix-mingw incompatibilities (e.g. getcwd()).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27904 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
-rw-r--r-- | apps/tree.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/tree.h b/apps/tree.h index e33fee00d7..993d1b4569 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -79,7 +79,13 @@ void set_current_file(char *path); int rockbox_browse(const char *root, int dirfilter); bool create_playlist(void); void resume_directory(const char *dir); -char *getcwd(char *buf, size_t size); +#ifdef WIN32 +/* it takes an int on windows */ +#define getcwd_size_t int +#else +#define getcwd_size_t size_t +#endif +char *getcwd(char *buf, getcwd_size_t size); void reload_directory(void); bool check_rockboxdir(void); struct tree_context* tree_get_context(void); |