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 | |
parent | c3cf79bd88400f1f2aa315051e9f7a79e1b4c40f (diff) | |
download | rockbox-c1370d25b2f9afac6ac560ced796e95f1c22883b.tar.gz rockbox-c1370d25b2f9afac6ac560ced796e95f1c22883b.zip |
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')
-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 @@ | |||
38 | #define O_RDWR 2 | 38 | #define O_RDWR 2 |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifndef SIMULATOR | 41 | #if !defined(SIMULATOR) || defined(__MINGW32__) |
42 | extern int open(char* pathname, int flags); | 42 | extern int open(char* pathname, int flags); |
43 | extern int close(int fd); | 43 | extern int close(int fd); |
44 | extern int read(int fd, void* buf, int count); | 44 | extern int read(int fd, void* buf, int count); |
@@ -51,10 +51,10 @@ extern int rename(char* oldname, char* newname); | |||
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #else | 53 | #else |
54 | #if defined(WIN32) && !defined(__MINGW32__) | 54 | #ifdef WIN32 |
55 | #include <io.h> | 55 | #include <io.h> |
56 | #include <stdio.h> | 56 | #include <stdio.h> |
57 | #endif // WIN32 | 57 | #endif /* WIN32 */ |
58 | #endif // SIMULATOR | 58 | #endif /* SIMULATOR */ |
59 | 59 | ||
60 | #endif | 60 | #endif |