Repository navigation
url: Load if_nametoindex() dynamically from iphlpapi.dll on Windows - #3958
Closed
captain-caveman2k wants to merge 1 commit into
Closed
captain-caveman2k wants to merge 1 commit into
captain-caveman2k wants to merge 1 commit into
Conversation
bagder
reviewed
May 28, 2019
Member
There was a problem hiding this comment.
This looks a bit funny indented. I presume because it got so wide. In these case I would say
breaking the line after = is the saner approach so that the CURLX_ can start indented just two columns in on the following line.
bagder
reviewed
May 28, 2019
Contributor
Author
There was a problem hiding this comment.
Obviously I can't type! I blame the new (Microsoft) keyboard !!
captain-caveman2k
force-pushed
the
IphlpApi.1
branch
from
May 28, 2019 22:55
3cb25d3 to
c66419a
Compare
This fixes the static dependency on iphlpapi.lib and allows curl to build for targets prior to Windows Vista. This partially reverts 170bd04.
captain-caveman2k
force-pushed
the
IphlpApi.1
branch
from
May 29, 2019 00:00
c66419a to
6ad1e26
Compare
jay
approved these changes
May 29, 2019
| s_hIpHlpApiDll = Curl_load_library(TEXT("iphlpapi.dll")); | ||
| if(s_hIpHlpApiDll) { | ||
| /* Get the address of the if_nametoindex function */ | ||
| IF_NAMETOINDEX_FN pIfNameToIndex = |
Member
There was a problem hiding this comment.
I suggest assign directly to Curl_if_nametoindex. Other than that this looks fine to me. But don't ask me what's up with the segfaults in the --enable-ares build. I can't fathom how they could possibly be related. Please make sure to add Fixes/Closes/Bug:/Ref:/etc lines to the commit message before sending it upstream.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the static dependency on iphlpapi.lib and allows curl to build for for targets prior to Windows Vista.
This partially reverts 170bd04.
Related to #3934 and #3943.