mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
curl: remove __EMX__ #ifdefs
These are OS/2-specific things added to the code in the year 2000. They were always ugly. If there's any user left, they still don't need it done this way. Closes #2166
This commit is contained in:
parent
9dfb194833
commit
179ee78e86
2 changed files with 2 additions and 36 deletions
18
lib/url.c
18
lib/url.c
|
|
@ -4635,22 +4635,8 @@ CURLcode Curl_setup_conn(struct connectdata *conn,
|
|||
Curl_verboseconnect(conn);
|
||||
}
|
||||
|
||||
conn->now = Curl_now(); /* time this *after* the connect is done, we
|
||||
set this here perhaps a second time */
|
||||
|
||||
#ifdef __EMX__
|
||||
/*
|
||||
* This check is quite a hack. We're calling _fsetmode to fix the problem
|
||||
* with fwrite converting newline characters (you get mangled text files,
|
||||
* and corrupted binary files when you download to stdout and redirect it to
|
||||
* a file).
|
||||
*/
|
||||
|
||||
if((data->set.out)->_handle == NULL) {
|
||||
_fsetmode(stdout, "b");
|
||||
}
|
||||
#endif
|
||||
|
||||
conn->now = Curl_now(); /* time this *after* the connect is done, we set
|
||||
this here perhaps a second time */
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue