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
This commit is contained in:
Daniel Stenberg 2002-08-04 14:17:01 +00:00
parent c3cf79bd88
commit c1370d25b2

View file

@ -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