From 6ac64206f3f06e8860b77488d9dc70bc8ab659af Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 May 2010 22:17:34 +0000 Subject: Revert r25854 which was bad for the database tool (I forgot it still needs the wrappers from uisimulator/common/io.c). Fix it so it works for both. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25856 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/file.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'firmware/include/file.h') diff --git a/firmware/include/file.h b/firmware/include/file.h index 1a43c6ad1d..f66cc6c60e 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h @@ -25,9 +25,6 @@ #undef MAX_PATH /* this avoids problems when building simulator */ #define MAX_PATH 260 -#ifdef __PCTOOL__ -#include -#else #include #include "_ansi.h" @@ -88,7 +85,7 @@ static inline int creat(const char *pathname, mode_t mode) (void)mode; return file_creat(pathname); } -#if !defined(CODEC) && !defined(PLUGIN) +#if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__) #define open(x, y, ...) file_open(x,y) #endif #endif @@ -100,4 +97,3 @@ extern off_t filesize(int fd); extern int release_files(int volume); int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); #endif -#endif -- cgit v1.2.3