Allow %n in printf format string for MSVC

This commit is contained in:
Marius Greuel 2020-10-06 20:33:48 +02:00
parent cc50b77de0
commit fa608b5ddf
1 changed files with 4 additions and 0 deletions

4
main.c
View File

@ -353,6 +353,10 @@ int main(int argc, char * argv [])
char * homedir; char * homedir;
#endif #endif
#ifdef _MSC_VER
_set_printf_count_output(1);
#endif
/* /*
* Set line buffering for file descriptors so we see stdout and stderr * Set line buffering for file descriptors so we see stdout and stderr
* properly interleaved. * properly interleaved.