forked from len0rd/rockbox
win32 simulator compatible
(open, close, read, write do not have to be re-defined) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@299 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4b5edb8e31
commit
17947b7898
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
#define SEEK_CUR 1
|
#define SEEK_CUR 1
|
||||||
#define SEEK_END 2
|
#define SEEK_END 2
|
||||||
|
|
||||||
|
#ifndef SIMULATOR
|
||||||
extern int open(char* pathname, int flags);
|
extern int open(char* pathname, int flags);
|
||||||
extern int close(int fd);
|
extern int close(int fd);
|
||||||
|
|
||||||
|
|
@ -31,6 +32,7 @@ extern int read(int fd, void* buf, int count);
|
||||||
extern int write(int fd, void* buf, int count);
|
extern int write(int fd, void* buf, int count);
|
||||||
|
|
||||||
extern int lseek(int fd, int offset, int whence);
|
extern int lseek(int fd, int offset, int whence);
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int remove(char* pathname);
|
extern int remove(char* pathname);
|
||||||
extern int rename(char* oldname, char* newname);
|
extern int rename(char* oldname, char* newname);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue