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 Jeffrey Altman
parent 95021a3284
commit ceef0a0089
9 changed files with 173 additions and 28 deletions

View File

@@ -887,6 +887,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