15 lines
206 B
C
15 lines
206 B
C
|
#include "system.h"
|
||
|
#include <fcntl.h>
|
||
|
|
||
|
#if defined WIN32
|
||
|
#include <io.h>
|
||
|
#endif
|
||
|
|
||
|
void sys_setbinarymode(FILE* fp)
|
||
|
{
|
||
|
#if defined WIN32
|
||
|
setmode(fileno(fp), O_BINARY);
|
||
|
#endif
|
||
|
}
|
||
|
|