From a855d6202536ff28e5aae4f22a0f31d8f5b325d0 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 21 Jan 2017 15:18:31 -0500 Subject: Port of Duke Nukem 3D This ports Fabien Sanglard's Chocolate Duke to run on a version of SDL for Rockbox. Change-Id: I8f2c4c78af19de10c1633ed7bb7a997b43256dd9 --- apps/plugins/lib/stdio_compat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins/lib/stdio_compat.h') diff --git a/apps/plugins/lib/stdio_compat.h b/apps/plugins/lib/stdio_compat.h index bb37940296..27ccfcf521 100644 --- a/apps/plugins/lib/stdio_compat.h +++ b/apps/plugins/lib/stdio_compat.h @@ -20,7 +20,7 @@ #include -#define MAX_STDIO_FILES 8 +#define MAX_STDIO_FILES 11 #undef FILE #define FILE _FILE_ @@ -42,6 +42,8 @@ #define ferror _ferror_ #define feof _feof_ #define fprintf _fprintf_ +#define stdout _stdout_ +#define stderr _stderr_ typedef struct { int fd; @@ -49,6 +51,8 @@ typedef struct { int error; } _FILE_; +extern _FILE_ *_stdout_, *_stderr_; + _FILE_ *_fopen_(const char *path, const char *mode); int _fclose_(_FILE_ *stream); int _fflush_(_FILE_ *stream); -- cgit v1.2.3