]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_setup.h: move UWP detection after `config-win32.h` (revert)
authorViktor Szakats <commit@vsz.me>
Thu, 24 Jul 2025 19:05:26 +0000 (21:05 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 24 Jul 2025 21:49:37 +0000 (23:49 +0200)
commit043da5a6e678d8aba0cd1c783d1cd60330c6b7d0
treeb976dda1038f2db1e911e5210f678da3f55d5826
parent28f4d7df0691fad2d2fe459072a0446e3cdb763f
curl_setup.h: move UWP detection after `config-win32.h` (revert)

This change wasn't good because `config-win32.h` does rely on the UWP
detection result to set `USE_WIN32_CRYPTO` and LDAP macros. While it
fixed one issue, it created another.

It seems better to revert, and focus on reducing and/or eventually
dropping the logic within `config-win32.h` that alters `_WIN32_WINNT`.
It may not be necessary anymore with a minimum of VS2008 (soon VS2010).
The logic is also absent from cmake builds, without causing issues.

Could affect UWP winbuild/project-file builds. These are theoretical
builds because neither build method is prepared to target UWP.

Reverts 792a61e2047782b85da0332cf298a747ce11e8e6 #17980
Ref: https://github.com/curl/curl/pull/17980#issuecomment-3114462492

Closes #18014
lib/curl_setup.h