summaryrefslogtreecommitdiff
path: root/LibC/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/stdio.h')
-rw-r--r--LibC/stdio.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/LibC/stdio.h b/LibC/stdio.h
index 1e6a79ea71..6129ccd3da 100644
--- a/LibC/stdio.h
+++ b/LibC/stdio.h
@@ -1,11 +1,28 @@
#pragma once
-extern "C" {
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+#ifndef EOF
+#define EOF (-1)
+#endif
+
+struct __STDIO_FILE {
+ int fd;
+};
+
+typedef struct __STDIO_FILE FILE;
+
+extern FILE* stdin;
+extern FILE* stdout;
+extern FILE* stderr;
+
+int fprintf(FILE*, const char* fmt, ...);
int printf(const char* fmt, ...);
int sprintf(char* buffer, const char* fmt, ...);
int putchar(int ch);
void perror(const char*);
-}
+__END_DECLS