]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_setup: define _WIN32_WINNT_[OS] symbols
authorJay Satiro <raysatiro@yahoo.com>
Sat, 7 Mar 2020 08:21:33 +0000 (03:21 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 21 Mar 2020 21:42:44 +0000 (17:42 -0400)
commitd820224b8b3621c312bd85e0951f470eab6df66a
treec96ae75ec3754a71c5a277c9fef85b5baaacdc1e
parentf25f602ffd026cc6b5bb0b3a6d8f1abe1bad7881
curl_setup: define _WIN32_WINNT_[OS] symbols

.. because not all Windows build systems have those symbols, and even
those that do may be missing newer symbols (eg the Windows 7 SDK does
not define _WIN32_WINNT_WIN10).

Those symbols are used in build-time logic to decide which API to use
and prior to this change if the symbols were missing it would have
resulted in deprecated API being used when more recent functions were
available (eg GetVersionEx used instead of VerifyVersionInfo).

Reported-by: FuccDucc@users.noreply.github.com
Probably fixes https://github.com/curl/curl/issues/4995
Closes https://github.com/curl/curl/pull/5057
lib/curl_setup.h
lib/setup-win32.h [new file with mode: 0644]