summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
authorkomh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-06 07:24:41 +0000
committerkomh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-06 07:24:41 +0000
commitdd491c0d289bb00b2d05fb75e11b52f5a9584f26 (patch)
treef3a63c1a5ee8ddecbe20fc7c7ec7eb4e1318a860 /stream/stream_file.c
parentca7cbc07244e261910cd651e2005bd6a9a7132be (diff)
downloadmpv-dd491c0d289bb00b2d05fb75e11b52f5a9584f26.tar.bz2
mpv-dd491c0d289bb00b2d05fb75e11b52f5a9584f26.tar.xz
Define O_BINARY in stream/stream.h unless it is defined yet, and use it
in other places. This removes platform specific checks and prevents repeated definitions of O_BINARY. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30850 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index 9fda32b185..37bbee4cfb 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -136,9 +136,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
filename++;
#endif
-#if defined(__CYGWIN__)|| defined(__MINGW32__) || defined(__OS2__)
m |= O_BINARY;
-#endif
if(!strcmp(filename,"-")){
if(mode == STREAM_READ) {