Fix cygwin sim build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2a9b1fd3d9
commit
19e3b6fb8b
1 changed files with 8 additions and 2 deletions
|
@ -33,16 +33,22 @@ extern bool doomexit;
|
||||||
/* libc functions */
|
/* libc functions */
|
||||||
int printf(const char *fmt, ...);
|
int printf(const char *fmt, ...);
|
||||||
int fileexists(const char * fname);
|
int fileexists(const char * fname);
|
||||||
int my_open(const char *file, int flags);
|
|
||||||
int my_close(int id);
|
|
||||||
char *my_strtok( char * s, const char * delim );
|
char *my_strtok( char * s, const char * delim );
|
||||||
#define alloca __builtin_alloca
|
#define alloca __builtin_alloca
|
||||||
#define fdprintf(...) rb->fdprintf(__VA_ARGS__)
|
#define fdprintf(...) rb->fdprintf(__VA_ARGS__)
|
||||||
#define vsnprintf(...) rb->vsnprintf(__VA_ARGS__)
|
#define vsnprintf(...) rb->vsnprintf(__VA_ARGS__)
|
||||||
#define read_line(a,b,c) rb->read_line((a),(b),(c))
|
#define read_line(a,b,c) rb->read_line((a),(b),(c))
|
||||||
|
|
||||||
|
#ifdef SIMULATOR
|
||||||
|
#define open(a,b) rb->open((a),(b))
|
||||||
|
#define close(a) rb->close((a))
|
||||||
|
#else
|
||||||
|
int my_open(const char *file, int flags);
|
||||||
|
int my_close(int id);
|
||||||
#define open(a,b) my_open((a),(b))
|
#define open(a,b) my_open((a),(b))
|
||||||
#define close(a) my_close((a))
|
#define close(a) my_close((a))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define lseek(a,b,c) rb->lseek((a),(b),(c))
|
#define lseek(a,b,c) rb->lseek((a),(b),(c))
|
||||||
#define filesize(a) rb->filesize((a))
|
#define filesize(a) rb->filesize((a))
|
||||||
#define read(a,b,c) rb->read((a),(b),(c))
|
#define read(a,b,c) rb->read((a),(b),(c))
|
||||||
|
|
Loading…
Reference in a new issue