We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ee43e2 commit 1818da2Copy full SHA for 1818da2
lib/utils/printf.c
@@ -35,6 +35,7 @@
35
#include "py/formatfloat.h"
36
#endif
37
38
+#undef putchar // Some stdlibs have a #define for putchar
39
int printf(const char *fmt, ...);
40
int vprintf(const char *fmt, va_list ap);
41
int putchar(int c);
@@ -72,7 +73,6 @@ int DEBUG_printf(const char *fmt, ...) {
72
73
74
75
// need this because gcc optimises printf("%c", c) -> putchar(c), and printf("a") -> putchar('a')
-#undef putchar // Some stdlibs have a #define for putchar
76
int putchar(int c) {
77
char chr = c;
78
mp_hal_stdout_tx_strn_cooked(&chr, 1);
0 commit comments