| # | Line 191 | Line 191 | rmx_load(const char *fname) | |
|---|---|---|
| 191 | ||
| 192 | if (fname == NULL) { /* reading from stdin? */ | |
| 193 | fname = "<stdin>"; | |
| 194 | + | #ifdef _WIN32 |
| 195 | + | _setmode(fileno(stdin), _O_BINARY); |
| 196 | + | #endif |
| 197 | } else { | |
| 198 | const char *sp = fname; /* check suffix */ | |
| 199 | while (*sp) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |