summaryrefslogtreecommitdiffstats
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 dceea84db0..9fda32b185 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_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
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 {