summaryrefslogtreecommitdiff
path: root/tests/test2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test2.c')
-rw-r--r--tests/test2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test2.c b/tests/test2.c
index 130a0a3..c1c08cc 100644
--- a/tests/test2.c
+++ b/tests/test2.c
@@ -16,7 +16,11 @@
#endif
#if O_BINARY
# include <io.h>
-# define SET_BINARY(f) setmode (f, O_BINARY)
+# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
+# define SET_BINARY(f) setmode (f, O_BINARY)
+# else
+# define SET_BINARY(f) _setmode (f, O_BINARY)
+# endif
#else
# define SET_BINARY(f) (void)0
#endif