forked from len0rd/rockbox
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
This commit is contained in:
parent
d563866935
commit
1beaa8b362
1 changed files with 11 additions and 1 deletions
|
@ -38,7 +38,15 @@
|
|||
#define O_RDWR 2
|
||||
#endif
|
||||
|
||||
#if !defined(SIMULATOR) || defined(__MINGW32__)
|
||||
#if defined(__MINGW32__) && defined(SIMULATOR)
|
||||
int open (const char*, int, ...);
|
||||
extern int close(int fd);
|
||||
int read (int, void*, unsigned int);
|
||||
long lseek (int, long, int);
|
||||
|
||||
#else
|
||||
|
||||
#ifndef SIMULATOR
|
||||
extern int open(char* pathname, int flags);
|
||||
extern int close(int fd);
|
||||
extern int read(int fd, void* buf, int count);
|
||||
|
@ -57,4 +65,6 @@ extern int rename(char* oldname, char* newname);
|
|||
#endif /* WIN32 */
|
||||
#endif /* SIMULATOR */
|
||||
|
||||
#endif /* __MINGW32__ */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue