]> git.ipfire.org Git - thirdparty/curl.git/commit
msvc: fix building with `HAVE_INET_NTOP` and MSVC <=1900
authorViktor Szakats <commit@vsz.me>
Tue, 7 Jan 2025 09:48:57 +0000 (10:48 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 7 Jan 2025 13:07:19 +0000 (14:07 +0100)
commit08ff33e483e15b003de169cef33ca7cb6b6a32c0
tree0ddf4ecb1e3c6663e1efe4e8d8bb4bc50798d91b
parent4e6de2f43f4e2967d61e124e19e4fe1f7727c953
msvc: fix building with `HAVE_INET_NTOP` and MSVC <=1900

MSVC 1900 and older is missing a `const` specifier in the `inet_ntop()`
declaration for the second argument. A workaround was in place for it
in cmake, but it didn't cover all necessary versions.

Replace the workaround with a different one, move it to `lib/inet_ntop.c`
and extend to all necessary MSVC versions.

Also add CI jobs for the older MSVC versions: 2013, 2015, 2017.

Closes #15923
CMakeLists.txt
appveyor.yml
lib/inet_ntop.h