Windows 10 SDK build fixes

Build without Win32.mak, and using Universal C Runtime (UCRT)

windows: Check for APPVER, not VCVER for UCRT

When deciding whether UCRT is used (and thus no CRT merge modules), check for
Windows 10 rather than the version of Visual Studio, as we may be building with
an older SDK.
This commit is contained in:
Luke Howard
2021-08-11 18:53:36 +10:00
committed by Nico Williams
parent 7cc4b7a9e6
commit ec866e635e
9 changed files with 191 additions and 28 deletions

View File

@@ -905,6 +905,17 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg }
/* Define if you have the function `strtok_r'. */
/* #define HAVE_STRTOK_R 1 */
#if defined(__has_include)
# if __has_include(<corecrt.h>)
# define HAVE_UCRT 1
# endif
#endif
#ifdef HAVE_UCRT
#define HAVE_STRTOLL 1
#define HAVE_STRTOULL 1
#endif
/* Define to 1 if the system has the type `struct addrinfo'. */
#define HAVE_STRUCT_ADDRINFO 1