summaryrefslogtreecommitdiff
path: root/firmware/common/file.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-05 07:51:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-05 07:51:09 +0000
commit1beaa8b362800b46316355c4ef96bd4983ccd8bd (patch)
tree00721c053d62b6e5f95e41df271184c0842e6704 /firmware/common/file.h
parentd5638669351d5b0a573b849b153782c59e06fe1c (diff)
downloadrockbox-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/file.h')
-rw-r--r--firmware/common/file.h12
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)
42int open (const char*, int, ...);
43extern int close(int fd);
44int read (int, void*, unsigned int);
45long lseek (int, long, int);
46
47#else
48
49#ifndef SIMULATOR
42extern int open(char* pathname, int flags); 50extern int open(char* pathname, int flags);
43extern int close(int fd); 51extern int close(int fd);
44extern int read(int fd, void* buf, int count); 52extern 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