Avoid Windows 8 Getversion deprecated errors.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 25 Feb 2014 12:11:22 +0000 (12:11 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 25 Feb 2014 13:43:04 +0000 (13:43 +0000)
commit910b3a81fd0cb46e77335f0b6aa010959458b353
tree849d1c5ed6645d189c41095563c023189f4d945e
parent24a47191f367a7320258505a0b35a65e822cf9d1
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)
apps/apps.c
crypto/bio/bss_log.c
crypto/cryptlib.c
crypto/rand/rand_win.c
e_os.h