mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-23 22:32:39 +02:00
use unbuffered IO on windows (#6)
This commit is contained in:
parent
8b93b8598b
commit
7bec1f76f7
@ -513,12 +513,9 @@ int main(int argc, char **argv) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
char *msyscon = getenv("MSYSCON");
|
setvbuf(stdout, 0, _IONBF, 0);
|
||||||
|
#endif
|
||||||
if (msyscon && 0 == strcmp(msyscon,"mintty.exe")) {
|
|
||||||
setvbuf(stdout, 0, _IONBF, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
fseek(fh,0,SEEK_END);
|
fseek(fh,0,SEEK_END);
|
||||||
size_t filesize = ftell(fh);
|
size_t filesize = ftell(fh);
|
||||||
|
Loading…
Reference in New Issue
Block a user