diff options
author | Franklin Wei <git@fwei.tk> | 2017-01-21 15:18:31 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-12-23 21:01:26 -0500 |
commit | a855d6202536ff28e5aae4f22a0f31d8f5b325d0 (patch) | |
tree | 8c75f224dd64ed360505afa8843d016b0d75000b /apps/plugins/lib/stdio_compat.h | |
parent | 01c6dcf6c7b9bb1ad2fa0450f99bacc5f3d3e04b (diff) | |
download | rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.tar.gz rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.zip |
Port of Duke Nukem 3D
This ports Fabien Sanglard's Chocolate Duke to run on a version of SDL
for Rockbox.
Change-Id: I8f2c4c78af19de10c1633ed7bb7a997b43256dd9
Diffstat (limited to 'apps/plugins/lib/stdio_compat.h')
-rw-r--r-- | apps/plugins/lib/stdio_compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
20 | 20 | ||
21 | #include <stddef.h> | 21 | #include <stddef.h> |
22 | 22 | ||
23 | #define MAX_STDIO_FILES 8 | 23 | #define MAX_STDIO_FILES 11 |
24 | 24 | ||
25 | #undef FILE | 25 | #undef FILE |
26 | #define FILE _FILE_ | 26 | #define FILE _FILE_ |
@@ -42,6 +42,8 @@ | |||
42 | #define ferror _ferror_ | 42 | #define ferror _ferror_ |
43 | #define feof _feof_ | 43 | #define feof _feof_ |
44 | #define fprintf _fprintf_ | 44 | #define fprintf _fprintf_ |
45 | #define stdout _stdout_ | ||
46 | #define stderr _stderr_ | ||
45 | 47 | ||
46 | typedef struct { | 48 | typedef struct { |
47 | int fd; | 49 | int fd; |
@@ -49,6 +51,8 @@ typedef struct { | |||
49 | int error; | 51 | int error; |
50 | } _FILE_; | 52 | } _FILE_; |
51 | 53 | ||
54 | extern _FILE_ *_stdout_, *_stderr_; | ||
55 | |||
52 | _FILE_ *_fopen_(const char *path, const char *mode); | 56 | _FILE_ *_fopen_(const char *path, const char *mode); |
53 | int _fclose_(_FILE_ *stream); | 57 | int _fclose_(_FILE_ *stream); |
54 | int _fflush_(_FILE_ *stream); | 58 | int _fflush_(_FILE_ *stream); |