Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
curl_setup: Improve detection of CURL_WINDOWS_APP #2025
If WINAPI_FAMILY is defined, it should be safe to try to include winapifamily.h to check what the define evaluates to. This should fix detection of CURL_WINDOWS_APP if building with _WIN32_WINNT set to 0x0600.
This doesn't hurt, but note that you never want to target anything lower than Windows 8 as minimum OS when building for Windows Store/Phone/Universal as some replacements for removed functions are not available then and such an application cannot run on anything lower than Windows 8 anyway.
curl doesn't use those functions at the moment, so this would be OK even when targeting Vista. It would only cause