[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.72,1.73
Sascha Sommer CVS
faust3 at mplayerhq.hu
Sun Mar 30 22:11:29 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv11670/libmpdemux
Modified Files:
open.c
Log Message:
MINGW32 port
Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- open.c 30 Mar 2003 17:07:31 -0000 1.72
+++ open.c 30 Mar 2003 20:11:25 -0000 1.73
@@ -610,10 +610,10 @@
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; }
}
More information about the MPlayer-cvslog
mailing list