Merge pull request #3499 from cesanta/putchar

Use putchar only on POSIX fs
This commit is contained in:
Sergio R. Caprile
2026-04-07 15:19:21 -03:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -10252,8 +10252,11 @@ char *mg_mprintf(const char *fmt, ...) {
}
void mg_pfn_stdout(char c, void *param) {
#if MG_ENABLE_POSIX_FS
putchar(c);
#endif
(void) param;
(void) c;
}
static size_t print_ip4(void (*out)(char, void *), void *arg, uint8_t *p) {
+3
View File
@@ -71,8 +71,11 @@ char *mg_mprintf(const char *fmt, ...) {
}
void mg_pfn_stdout(char c, void *param) {
#if MG_ENABLE_POSIX_FS
putchar(c);
#endif
(void) param;
(void) c;
}
static size_t print_ip4(void (*out)(char, void *), void *arg, uint8_t *p) {