projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa7d5b9
)
curl tool: symbol check adjustment
author
Yang Tse
<yangsita@gmail.com>
Wed, 5 Oct 2011 00:58:18 +0000
(
02:58
+0200)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 5 Oct 2011 00:58:18 +0000
(
02:58
+0200)
src/tool_binmode.c
patch
|
blob
|
history
diff --git
a/src/tool_binmode.c
b/src/tool_binmode.c
index
4afe9a4
..
51bbb45
100644
(file)
--- 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
}