[vlc-commits] winvlc: Replace STDIN_FILENO by the equivalent _fileno call
Hugo Beauzée-Luyssen
git at videolan.org
Fri Nov 21 17:36:52 CET 2014
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Oct 22 15:31:30 2014 +0200| [a32f9e2d8737dcd93ea33a2f3b1fc420f8e1506b] | committer: Hugo Beauzée-Luyssen
winvlc: Replace STDIN_FILENO by the equivalent _fileno call
STDIN_FILENO isn't defined by MSVC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a32f9e2d8737dcd93ea33a2f3b1fc420f8e1506b
---
bin/winvlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 640ef09..7caab51 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -151,7 +151,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
SetUnhandledExceptionFilter(vlc_exception_filter);
}
- _setmode( STDIN_FILENO, _O_BINARY ); /* Needed for pipes */
+ _setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */
/* */
if (!lang)
More information about the vlc-commits
mailing list