From dd491c0d289bb00b2d05fb75e11b52f5a9584f26 Mon Sep 17 00:00:00 2001 From: komh Date: Sat, 6 Mar 2010 07:24:41 +0000 Subject: 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 --- stream/stream_file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'stream/stream_file.c') 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) { -- cgit v1.2.3