Commit 19cc40ec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_fopen: implement binary mode (useful on Windows)

parent c4844130
......@@ -77,8 +77,12 @@ FILE *vlc_fopen (const char *filename, const char *mode)
break;
#ifdef O_TEXT
case 'b':
oflags = (oflags & ~O_TEXT) | O_BINARY;
break;
case 't':
oflags |= O_TEXT;
oflags = (oflags & ~O_BINARY) | O_TEXT;
break;
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment