diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-02-25 12:11:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-02-25 13:41:53 +0000 |
commit | 0f9bcf33197989bda47ccde4ad4fc1feb82dffbe (patch) | |
tree | 4f602ac90e4af54f2728a9bdcb7b2952bcb80ce2 /crypto/bio | |
parent | a948732e1c9ffdc92cb9f7b201966aba89dd4d20 (diff) |
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)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index b7dce5c1a2..2227b2b52d 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -245,7 +245,7 @@ static int MS_CALLBACK slg_puts(BIO *bp, const char *str) static void xopenlog(BIO* bp, char* name, int level) { - if (GetVersion() < 0x80000000) + if (check_winnt()) bp->ptr = RegisterEventSourceA(NULL,name); else bp->ptr = NULL; |