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 bb37940..27ccfcf 100644
--- a/apps/plugins/lib/stdio_compat.h
+++ b/apps/plugins/lib/stdio_compat.h
@@ -20,7 +20,7 @@
#include <stddef.h>
-#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);