Allow %n in printf format string for MSVC

This commit is contained in:
Marius Greuel 2020-10-06 20:33:48 +02:00
parent d007a46e31
commit b228b56355
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;
#endif
#ifdef _MSC_VER
_set_printf_count_output(1);
#endif
/*
* Set line buffering for file descriptors so we see stdout and stderr
* properly interleaved.