diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-02-25 13:11:22 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-02-25 14:40:33 +0100 |
commit | a4cc3c8041104896d51ae12ef7b678c31808ce52 (patch) | |
tree | 914087a9cfce93b5227e67f4d2e118956c52f9ab /e_os.h | |
parent | Parse non-v1 SCTs less awkwardly. (diff) | |
download | openssl-a4cc3c8041104896d51ae12ef7b678c31808ce52.tar.xz openssl-a4cc3c8041104896d51ae12ef7b678c31808ce52.zip |
Avoid Windows 8 Getversion deprecated errors.
Windows 8 SDKs complain that GetVersion() is deprecated.
We only use GetVersion like this:
(GetVersion() < 0x80000000)
which checks if the Windows version is NT based. Use a macro check_winnt()
which uses GetVersion() on older SDK versions and true otherwise.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |