diff --git a/include/stdio.h b/include/stdio.h index c824764..9b1f161 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -8,6 +8,9 @@ * STDIO based functions (can always be used) */ +#define ORIG_printf printf +#undef printf + /* serial stuff */ void serial_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); @@ -60,4 +63,6 @@ int ftstc(int file); int fgetc(int file); +#define printf ORIG_printf + #endif /* __STDIO_H */