Commit 1c8b5fc1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: do not set _fmode

Setting the translation mode is the responsibility of the program. A
library must not interfere with that. It could perhaps be added to VLC.
However it should not be required as we now force binary mode by
default in vlc_fopen() and always specify an explicit mode when calling
fopen() directly. Also it would make VLC behave differently than other
LibVLC applications, which may raise really weird bugs.
parent 7ac7fbcc
......@@ -34,8 +34,6 @@
#include "../config/vlc_getopt.h"
#if !defined( UNDER_CE )
# include <io.h>
# include <fcntl.h>
# include <mmsystem.h>
#endif
......@@ -82,7 +80,6 @@ void system_Init( void )
/* Set the default file-translation mode */
#if !defined( UNDER_CE )
_fmode = _O_BINARY;
timeBeginPeriod(5);
#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