curl tool: symbol check adjustment
authorYang Tse <yangsita@gmail.com>
Wed, 5 Oct 2011 00:58:18 +0000 (02:58 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 5 Oct 2011 00:58:18 +0000 (02:58 +0200)
src/tool_binmode.c

index 4afe9a4..51bbb45 100644 (file)
 
 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
 }