ref: 8e60c90fec994d43fd1b4be0c4c15c0381f1e7eb
parent: 1b5b0926886f290142d670201be2f1ee6c8fd538
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Mar 4 07:57:07 EST 2017
[libc] Add macro implementation of printf
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -95,4 +95,8 @@
extern int ferror(FILE *fp);
extern void perror(const char *s);
+#ifdef __USE_MACROS
+#define printf(fmt, ...) fprintf(stdin, fmt, __VA_ARGS__)
+#endif
+
#endif