]> git.sesse.net Git - vlc/commitdiff
Win32: do not set _fmode
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 22 Nov 2011 16:12:42 +0000 (18:12 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 22 Nov 2011 16:13:07 +0000 (18:13 +0200)
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.

src/win32/specific.c

index 2d82256e7ca12c3132b16e2a0764c19de60bc846..df6ab9b46650723d6470fcc3b989d2aad23fd02b 100644 (file)
@@ -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