diff options
author | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2019-06-11 17:22:46 +0000 |
---|---|---|
committer | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2019-06-11 17:22:46 +0000 |
commit | d6ff9acb29969c68ab05d0582fceec7d582bc1b1 (patch) | |
tree | 061bd2183b9e6ba6b2b718bb1b94864980d3eaf5 /misc | |
parent | b4ed4d2776df502f18d53a9a6529ffe11e839305 (diff) | |
download | libapr-d6ff9acb29969c68ab05d0582fceec7d582bc1b1.tar.gz |
Fix problem that apr_get_oslevel() was returning APR_WIN_XP on Windows 10.
* include/arch/win32/apr_arch_misc.h
(enum apr_oslevel_e): Add APR_WIN_10.
* misc/win32/misc.c
(apr_get_oslevel): Return APR_WIN_10 when dwMajorVersion is greater than 6.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1861054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/win32/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c index 971c38cde..20e99eddc 100644 --- a/misc/win32/misc.c +++ b/misc/win32/misc.c @@ -97,7 +97,7 @@ apr_status_t apr_get_oslevel(apr_oslevel_e *level) apr_os_level = APR_WIN_8_1; } else { - apr_os_level = APR_WIN_XP; + apr_os_level = APR_WIN_10; } } #ifdef _WIN32_WCE |