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.
#include "../config/vlc_getopt.h"
#if !defined( UNDER_CE )
-# include <io.h>
-# include <fcntl.h>
# include <mmsystem.h>
#endif
/* Set the default file-translation mode */
#if !defined( UNDER_CE )
- _fmode = _O_BINARY;
timeBeginPeriod(5);
#endif