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:40:33 +0000 |
commit | a4cc3c8041104896d51ae12ef7b678c31808ce52 (patch) | |
tree | 914087a9cfce93b5227e67f4d2e118956c52f9ab /apps/apps.c | |
parent | 19f65ddbab30543415584ae7916e12a3c5249dba (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.
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index c5a3bb27e4..b99996e944 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -3133,7 +3133,7 @@ double app_tminterval(int stop,int usertime) if (proc==NULL) { - if (GetVersion() < 0x80000000) + if (check_winnt()) proc = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE, GetCurrentProcessId()); if (proc==NULL) proc = (HANDLE)-1; |