use unbuffered IO on windows (#6)

This commit is contained in:
Dave Murphy 2018-04-19 20:15:06 +00:00 committed by yellows8
parent 8b93b8598b
commit 7bec1f76f7

View File

@ -513,12 +513,9 @@ int main(int argc, char **argv) {
return -1;
}
char *msyscon = getenv("MSYSCON");
if (msyscon && 0 == strcmp(msyscon,"mintty.exe")) {
#ifdef _WIN32
setvbuf(stdout, 0, _IONBF, 0);
}
#endif
fseek(fh,0,SEEK_END);
size_t filesize = ftell(fh);