Avoid Windows 8 Getversion deprecated errors.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 25 Feb 2014 12:11:22 +0000 (12:11 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 13 Jan 2015 09:30:24 +0000 (09:30 +0000)
commit09caf4ffcd5c45bef9012aa53cc64ef5c8b1067f
tree6fb020bf17f987f33855c099afb5291f855af2f5
parent9793a0713f08a6ca85852410fa00a774b3b6c2ea
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.
(cherry picked from commit a4cc3c8041104896d51ae12ef7b678c31808ce52)

Conflicts:
apps/apps.c
crypto/bio/bss_log.c

Backported by Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openss.org>
crypto/cryptlib.c
crypto/rand/rand_win.c
e_os.h