mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Check for O_BINARY instead of a list of systems that need it
Originally committed as revision 9427 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07c5445d5d
commit
05d00e953f
@ -41,7 +41,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
|
|||||||
} else {
|
} else {
|
||||||
access = O_RDONLY;
|
access = O_RDONLY;
|
||||||
}
|
}
|
||||||
#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
|
#ifdef O_BINARY
|
||||||
access |= O_BINARY;
|
access |= O_BINARY;
|
||||||
#endif
|
#endif
|
||||||
fd = open(filename, access, 0666);
|
fd = open(filename, access, 0666);
|
||||||
@ -96,7 +96,7 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
|
|||||||
} else {
|
} else {
|
||||||
fd = 0;
|
fd = 0;
|
||||||
}
|
}
|
||||||
#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
|
#ifdef O_BINARY
|
||||||
setmode(fd, O_BINARY);
|
setmode(fd, O_BINARY);
|
||||||
#endif
|
#endif
|
||||||
h->priv_data = (void *)(size_t)fd;
|
h->priv_data = (void *)(size_t)fd;
|
||||||
|
Loading…
Reference in New Issue
Block a user