diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-05 07:51:09 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-05 07:51:09 +0000 |
commit | 1beaa8b362800b46316355c4ef96bd4983ccd8bd (patch) | |
tree | 00721c053d62b6e5f95e41df271184c0842e6704 /firmware/common | |
parent | d5638669351d5b0a573b849b153782c59e06fe1c (diff) | |
download | rockbox-1beaa8b362800b46316355c4ef96bd4983ccd8bd.tar.gz rockbox-1beaa8b362800b46316355c4ef96bd4983ccd8bd.zip |
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
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/file.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 @@ | |||
38 | #define O_RDWR 2 | 38 | #define O_RDWR 2 |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #if !defined(SIMULATOR) || defined(__MINGW32__) | 41 | #if defined(__MINGW32__) && defined(SIMULATOR) |
42 | int open (const char*, int, ...); | ||
43 | extern int close(int fd); | ||
44 | int read (int, void*, unsigned int); | ||
45 | long lseek (int, long, int); | ||
46 | |||
47 | #else | ||
48 | |||
49 | #ifndef SIMULATOR | ||
42 | extern int open(char* pathname, int flags); | 50 | extern int open(char* pathname, int flags); |
43 | extern int close(int fd); | 51 | extern int close(int fd); |
44 | extern int read(int fd, void* buf, int count); | 52 | extern int read(int fd, void* buf, int count); |
@@ -57,4 +65,6 @@ extern int rename(char* oldname, char* newname); | |||
57 | #endif /* WIN32 */ | 65 | #endif /* WIN32 */ |
58 | #endif /* SIMULATOR */ | 66 | #endif /* SIMULATOR */ |
59 | 67 | ||
68 | #endif /* __MINGW32__ */ | ||
69 | |||
60 | #endif | 70 | #endif |