trunk/src/osd/windows/winmain.c
| r21900 | r21901 | |
| 45 | 45 | #include <commctrl.h> |
| 46 | 46 | #include <mmsystem.h> |
| 47 | 47 | #include <tchar.h> |
| 48 | #include <io.h> |
| 48 | 49 | |
| 49 | 50 | // standard C headers |
| 50 | 51 | #include <ctype.h> |
| r21900 | r21901 | |
| 454 | 455 | |
| 455 | 456 | int main(int argc, char *argv[]) |
| 456 | 457 | { |
| 458 | // use small output buffers on non-TTYs (i.e. pipes) |
| 459 | if (!isatty(fileno(stdout))) |
| 460 | setvbuf(stdout, (char *) NULL, _IOFBF, 64); |
| 461 | if (!isatty(fileno(stderr))) |
| 462 | setvbuf(stderr, (char *) NULL, _IOFBF, 64); |
| 463 | |
| 457 | 464 | // initialize common controls |
| 458 | 465 | InitCommonControls(); |
| 459 | 466 | |