summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/stdio_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/stdio_compat.h')
-rw-r--r--apps/plugins/lib/stdio_compat.h6
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
46typedef struct { 48typedef 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
54extern _FILE_ *_stdout_, *_stderr_;
55
52_FILE_ *_fopen_(const char *path, const char *mode); 56_FILE_ *_fopen_(const char *path, const char *mode);
53int _fclose_(_FILE_ *stream); 57int _fclose_(_FILE_ *stream);
54int _fflush_(_FILE_ *stream); 58int _fflush_(_FILE_ *stream);