From 0572ad6d01a44942e9f5edcaa151b2ca0e75ffef Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 5 Oct 2011 02:58:18 +0200 Subject: curl tool: symbol check adjustment --- src/tool_binmode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tool_binmode.c') diff --git a/src/tool_binmode.c b/src/tool_binmode.c index 4afe9a413..51bbb45d2 100644 --- a/src/tool_binmode.c +++ b/src/tool_binmode.c @@ -37,10 +37,12 @@ void set_binmode(FILE *stream) { -#ifdef __HIGHC__ +#ifdef O_BINARY +# ifdef __HIGHC__ _setmode(stream, O_BINARY); -#else +# else setmode(fileno(stream), O_BINARY); +# endif #endif } -- cgit v1.2.3