scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 96412d000b9cb374033665f6ccfcd06f9c9e4d0e
parent 5fdc042d9cf6b6ea1ee1b9e132e5b8d879310410
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  4 Mar 2017 12:57:07 +0100

[libc] Add macro implementation of printf

Diffstat:
libc/include/stdio.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/include/stdio.h b/libc/include/stdio.h @@ -95,4 +95,8 @@ extern int feof(FILE *fp); extern int ferror(FILE *fp); extern void perror(const char *s); +#ifdef __USE_MACROS +#define printf(fmt, ...) fprintf(stdin, fmt, __VA_ARGS__) +#endif + #endif