From c1370d25b2f9afac6ac560ced796e95f1c22883b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 4 Aug 2002 14:17:01 +0000 Subject: use our own prototypes for open, read, close and lseek if we compile with Mingw32 as doesn't seem to be good to include then git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1532 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/common/file.h b/firmware/common/file.h index 19717ca525..d4eae04c39 100644 --- a/firmware/common/file.h +++ b/firmware/common/file.h @@ -38,7 +38,7 @@ #define O_RDWR 2 #endif -#ifndef SIMULATOR +#if !defined(SIMULATOR) || defined(__MINGW32__) extern int open(char* pathname, int flags); extern int close(int fd); extern int read(int fd, void* buf, int count); @@ -51,10 +51,10 @@ extern int rename(char* oldname, char* newname); #endif #else -#if defined(WIN32) && !defined(__MINGW32__) +#ifdef WIN32 #include #include -#endif // WIN32 -#endif // SIMULATOR +#endif /* WIN32 */ +#endif /* SIMULATOR */ #endif -- cgit v1.2.3