| 744 | /************************************************************************/ |
| 745 | |
| 746 | int msIO_needBinaryStdin() |
| 747 | |
| 748 | { |
| 749 | #if defined(_WIN32) && !defined(USE_FASTCGI) |
| 750 | if(_setmode( _fileno(stdin), _O_BINARY) == -1) |
| 751 | { |
| 752 | msSetError(MS_IOERR, |
| 753 | "Unable to change stdin to binary mode.", |
| 754 | "msIO_needBinaryStdin()" ); |
| 755 | return(MS_FAILURE); |
| 756 | } |
| 757 | #endif |
| 758 | |
| 759 | return MS_SUCCESS; |
| 760 | } |
| 761 | |
| 762 | /* ==================================================================== */ |
| 763 | /* memory buffer io handling functions. */ |
no test coverage detected