[FFmpeg-cvslog] r9427 - trunk/libavformat/file.c

ramiro subversion
Mon Jun 25 22:34:20 CEST 2007


Author: ramiro
Date: Mon Jun 25 22:34:20 2007
New Revision: 9427

Log:
Check for O_BINARY instead of a list of systems that need it

Modified:
   trunk/libavformat/file.c

Modified: trunk/libavformat/file.c
==============================================================================
--- trunk/libavformat/file.c	(original)
+++ trunk/libavformat/file.c	Mon Jun 25 22:34:20 2007
@@ -41,7 +41,7 @@ static int file_open(URLContext *h, cons
     } else {
         access = O_RDONLY;
     }
-#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
+#ifdef O_BINARY
     access |= O_BINARY;
 #endif
     fd = open(filename, access, 0666);
@@ -96,7 +96,7 @@ static int pipe_open(URLContext *h, cons
     } else {
         fd = 0;
     }
-#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
+#ifdef O_BINARY
     setmode(fd, O_BINARY);
 #endif
     h->priv_data = (void *)(size_t)fd;




More information about the ffmpeg-cvslog mailing list