]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Check for O_BINARY instead of a list of systems that need it
authorramiro <ramiro@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 25 Jun 2007 20:34:20 +0000 (20:34 +0000)
committerramiro <ramiro@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 25 Jun 2007 20:34:20 +0000 (20:34 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9427 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/file.c

index 7acf44613378d3e84c942d611b3a52785fd0fd65..70c9a645cb3ce1a9fa20d2da0d72b0ce9cbbf802 100644 (file)
@@ -41,7 +41,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
     } 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, const char *filename, int flags)
     } 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;