mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-17 10:49:47 +00:00
Use putchar only on POSIX fs
This commit is contained in:
1 parent
86cd59387f
commit
c7d7aeb143
2 files changed
+6
No files matched your search
@@ -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