X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=e_os.h;h=c5ed54f3b2992bca2b52b1d845ab99a251512db0;hp=f737ae854747f8ee26d44a6cba00d50dca3cad58;hb=3a325c60a39610e8afd56dd90417f13d1044fb00;hpb=478b50cf67d6a91fdcd584cff57c58b7e863055d diff --git a/e_os.h b/e_os.h index f737ae8547..c5ed54f3b2 100644 --- a/e_os.h +++ b/e_os.h @@ -373,6 +373,13 @@ static unsigned int _strlen31(const char *str) # define DEFAULT_HOME "C:" # endif +/* Avoid Windows 8 SDK GetVersion deprecated problems */ +#if defined(_MSC_VER) && _MSC_VER>=1800 +# define check_winnt() (1) +#else +# define check_winnt() (GetVersion() < 0x80000000) +#endif + #else /* The non-microsoft world */ # ifdef OPENSSL_SYS_VMS