Init: enable buffering on Windows

This commit is contained in:
李通洲
2022-10-23 17:54:02 +08:00
parent bddf1c67bf
commit ed85b8249a
+1
View File
@@ -125,6 +125,7 @@ static void initState(FFstate* state)
#ifdef WIN32
//https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?source=recommendations&view=msvc-170#utf-8-support
setlocale(LC_ALL, ".UTF8");
setvbuf(stdout, NULL, _IOFBF, 4096);
#endif
state->logoWidth = 0;