Commit 7ac7fbcc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: setmode(stdin) belongs in the app, not the library

parent 709b755f
......@@ -36,6 +36,8 @@
# ifndef _WIN32_IE
# define _WIN32_IE 0x501
# endif
# include <fcntl.h>
# include <io.h>
# include <shlobj.h>
# include <wininet.h>
# define PSAPI_VERSION 1
......@@ -187,6 +189,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
SetUnhandledExceptionFilter(vlc_exception_filter);
}
_setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */
#else /* UNDER_CE */
char **argv, psz_cmdline[wcslen(lpCmdLine) * 4];
......
......@@ -83,8 +83,6 @@ void system_Init( void )
/* Set the default file-translation mode */
#if !defined( UNDER_CE )
_fmode = _O_BINARY;
_setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */
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