From 1beaa8b362800b46316355c4ef96bd4983ccd8bd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Aug 2002 07:51:09 +0000 Subject: added weirdo extra protos for the mingw cross-compile build git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1534 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/common/file.h b/firmware/common/file.h index d4eae04c39..66e0139537 100644 --- a/firmware/common/file.h +++ b/firmware/common/file.h @@ -38,7 +38,15 @@ #define O_RDWR 2 #endif -#if !defined(SIMULATOR) || defined(__MINGW32__) +#if defined(__MINGW32__) && defined(SIMULATOR) +int open (const char*, int, ...); +extern int close(int fd); +int read (int, void*, unsigned int); +long lseek (int, long, int); + +#else + +#ifndef SIMULATOR extern int open(char* pathname, int flags); extern int close(int fd); extern int read(int fd, void* buf, int count); @@ -57,4 +65,6 @@ extern int rename(char* oldname, char* newname); #endif /* WIN32 */ #endif /* SIMULATOR */ +#endif /* __MINGW32__ */ + #endif -- cgit v1.2.3