-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting types for inet_ntop #298
Comments
I see in I'd be inclined to remove it if your situation is the common mingw case now. That would fix it for the current users, while letting others add Thoughts invited. |
I have been compiling luasocket from the repository for a few years now. It used to work with that option before but now I tried after a few months I suppose and I started getting this error. Both functions defined in the #ifdef LUASOCKET_INET_PTON - inet_ntop and inet_pton seem to be already present in the ws2tcpip.h file in mingw. Also in the microsoft documentation https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_pton it seems they are defined there properly. So I think removing it seems reasonable. |
Removal proposed in #300 |
See discussion here for why this was introduced: Turns out these functions were only introduced in Vista and Win2k8. God knows if anybody still uses anything older than that. |
Interesting! Isn't that all the more reason to remove it for the default case now, while still allowing those needing it to add |
Indeed! |
Closing now that #300 has been merged with the discussed change. |
I am trying to compile luasocket with Msys2 mingw32. When I run make I get this error message:
ws2tcpip is included in inet.h file.
If I remove the compile option LUASOCKET_INET_PTON then it compiles fine.
The text was updated successfully, but these errors were encountered: