Enable printf %n format specifier for MSVC

This commit is contained in:
Marius Greuel 2022-01-12 20:41:52 +01:00
parent 0ba4d2eaee
commit 3fbac230b3
1 changed files with 4 additions and 0 deletions

View File

@ -366,6 +366,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.