aboutsummaryrefslogtreecommitdiff
path: root/m4/xc-am-iface.m4
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2019-02-16 18:55:40 -0500
committerJay Satiro <raysatiro@yahoo.com>2019-02-18 02:12:12 -0500
commitf26bc29cfec0be84c67cf74065cf8e5e78fd68b7 (patch)
treea98c016f45dba96cebb89792cbb98fa14d756620 /m4/xc-am-iface.m4
parente6522522f96ad96b459e608c6cdcd46a32099b5b (diff)
easy: fix win32 init to work without CURL_GLOBAL_WIN32
- Change the behavior of win32_init so that the required initialization procedures are not affected by CURL_GLOBAL_WIN32 flag. libcurl via curl_global_init supports initializing for win32 with an optional flag CURL_GLOBAL_WIN32, which if omitted was meant to stop Winsock initialization. It did so internally by skipping win32_init() when that flag was set. Since then win32_init() has been expanded to include required initialization routines that are separate from Winsock and therefore must be called in all cases. This commit fixes it so that CURL_GLOBAL_WIN32 only controls the optional win32 initialization (which is Winsock initialization, according to our doc). The only users affected by this change are those that don't pass CURL_GLOBAL_WIN32 to curl_global_init. For them this commit removes the risk of a potential crash. Ref: https://github.com/curl/curl/pull/3573 Fixes https://github.com/curl/curl/issues/3313 Closes https://github.com/curl/curl/pull/3575
Diffstat (limited to 'm4/xc-am-iface.m4')
0 files changed, 0 insertions, 0 deletions