From 2c2e261648d5ae1befe5c4f269a655cc06b6e1e9 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 27 Aug 2010 12:38:25 +0000 Subject: 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 --- apps/tree.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/tree.h') 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); -- cgit v1.2.3