mirror of
https://github.com/cesanta/mongoose.git
synced 2026-09-30 21:42:42 +07:00
Merge pull request #3499 from cesanta/putchar
Use putchar only on POSIX fs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user