stdio: declare stdin, stdout and stderr on all targets

This is needed for some basic stuff like assert.
This commit is contained in:
Lephenixnoir 2021-05-16 18:02:46 +02:00
parent c88b31ec94
commit 97d52ff0b1
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
4 changed files with 30 additions and 1 deletions

View File

@ -2,8 +2,16 @@
# define __STDIO_H__
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <bits/types/FILE.h>
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
/* Make them macros (7.19.1§3) */
#define stdin stdin
#define stdout stdout
#define stderr stderr
/* *printf() familly - formatted output conversion. */
extern int printf(const char *restrict format, ...);

View File

@ -0,0 +1,7 @@
#ifndef __BITS_TYPES_FILE_H__
# define __BITS_TYPES_FILE_H__
typedef struct {
} FILE;
#endif /*__BITS_TYPES_FILE_H__*/

View File

@ -0,0 +1,7 @@
#ifndef __BITS_TYPES_FILE_H__
# define __BITS_TYPES_FILE_H__
typedef struct {
} FILE;
#endif /*__BITS_TYPES_FILE_H__*/

View File

@ -0,0 +1,7 @@
#ifndef __BITS_TYPES_FILE_H__
# define __BITS_TYPES_FILE_H__
typedef struct {
} FILE;
#endif /*__BITS_TYPES_FILE_H__*/