aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream/stream_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index e2114d490e..a77d51d315 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -145,14 +145,14 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
// read from stdin
mp_tmsg(MSGT_OPEN,MSGL_INFO,"Reading from stdin...\n");
f=0; // 0=stdin
-#if defined(__MINGW32__) || defined(__OS2__)
- setmode(fileno(stdin),O_BINARY);
+#if HAVE_SETMODE
+ setmode(fileno(stdin),O_BINARY);
#endif
} else {
mp_msg(MSGT_OPEN,MSGL_INFO,"Writing to stdout\n");
f=1;
-#if defined(__MINGW32__) || defined(__OS2__)
- setmode(fileno(stdout),O_BINARY);
+#if HAVE_SETMODE
+ setmode(fileno(stdout),O_BINARY);
#endif
}
} else {