mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 04:23:38 +01:00
stdio: declare stdin, stdout and stderr on all targets
This is needed for some basic stuff like assert.
This commit is contained in:
parent
c88b31ec94
commit
97d52ff0b1
4 changed files with 30 additions and 1 deletions
|
@ -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, ...);
|
||||
|
|
7
include/target/casiowin-cg/bits/types/FILE.h
Normal file
7
include/target/casiowin-cg/bits/types/FILE.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifndef __BITS_TYPES_FILE_H__
|
||||
# define __BITS_TYPES_FILE_H__
|
||||
|
||||
typedef struct {
|
||||
} FILE;
|
||||
|
||||
#endif /*__BITS_TYPES_FILE_H__*/
|
7
include/target/casiowin-fx/bits/types/FILE.h
Normal file
7
include/target/casiowin-fx/bits/types/FILE.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifndef __BITS_TYPES_FILE_H__
|
||||
# define __BITS_TYPES_FILE_H__
|
||||
|
||||
typedef struct {
|
||||
} FILE;
|
||||
|
||||
#endif /*__BITS_TYPES_FILE_H__*/
|
7
include/target/gint/bits/types/FILE.h
Normal file
7
include/target/gint/bits/types/FILE.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifndef __BITS_TYPES_FILE_H__
|
||||
# define __BITS_TYPES_FILE_H__
|
||||
|
||||
typedef struct {
|
||||
} FILE;
|
||||
|
||||
#endif /*__BITS_TYPES_FILE_H__*/
|
Loading…
Reference in a new issue