diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-30 20:11:25 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-30 20:11:25 +0000 |
commit | 316635bb3523ce20615e8fae8d20fcb42dc29dd7 (patch) | |
tree | f52ce5fa2e758ce3dd8416f8f72f689ba90b694d /libmpdemux | |
parent | 2f0126f6c0a9a7fa56ffe2aa37cc613f8c5ce7ad (diff) |
MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9763 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 7268a382b4..808a92b793 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -610,10 +610,10 @@ if(strncmp("dvbin://",filename,8) == 0) mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN); f=0; // 0=stdin } else { -#ifndef __CYGWIN__ - f=open(filename,O_RDONLY); -#else +#if defined(__CYGWIN__) || defined(__MINGW32__) f=open(filename,O_RDONLY|O_BINARY); +#else + f=open(filename,O_RDONLY); #endif if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; } } |