]> granicus.if.org Git - curl/commit
curl_setup_once: Remove ERRNO/SET_ERRNO macros
authorJay Satiro <raysatiro@yahoo.com>
Mon, 19 Jun 2017 04:52:38 +0000 (00:52 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 10 Jul 2017 06:09:27 +0000 (02:09 -0400)
commitaf0216251b94e751baa47146ac9609db70793b8e
treede39c7130d519f0bcda17b9a09df822f02fc32e6
parent17da6750026cf00277aad3a44fd20b1a4cea6406
curl_setup_once: Remove ERRNO/SET_ERRNO macros

Prior to this change (SET_)ERRNO mapped to GetLastError/SetLastError
for Win32 and regular errno otherwise.

I reviewed the code and found no justifiable reason for conflating errno
on WIN32 with GetLastError/SetLastError. All Win32 CRTs support errno,
and any Win32 multithreaded CRT supports thread-local errno.

Fixes https://github.com/curl/curl/issues/895
Closes https://github.com/curl/curl/pull/1589
14 files changed:
lib/asyn-thread.c
lib/connect.c
lib/curl_ntlm_wb.c
lib/curl_setup_once.h
lib/curl_threads.c
lib/inet_ntop.c
lib/inet_pton.c
lib/non-ascii.c
lib/parsedate.c
lib/strerror.c
lib/strtoofft.c
lib/telnet.c
src/tool_dirhie.c
src/tool_paramhlp.c