diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-04 14:17:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-04 14:17:01 +0000 |
commit | c1370d25b2f9afac6ac560ced796e95f1c22883b (patch) | |
tree | ccbd073ee06abb6e0a30a5b862e89f4c886c6cb3 /firmware/common/file.h | |
parent | c3cf79bd88400f1f2aa315051e9f7a79e1b4c40f (diff) |
use our own prototypes for open, read, close and lseek if we compile
with Mingw32 as <io.h> doesn't seem to be good to include then
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1532 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.h')
-rw-r--r-- | firmware/common/file.h | 8 |
1 files 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 <io.h> #include <stdio.h> -#endif // WIN32 -#endif // SIMULATOR +#endif /* WIN32 */ +#endif /* SIMULATOR */ #endif |