diff options
author | Mladen Turk <mturk@apache.org> | 2021-12-02 22:18:40 +0000 |
---|---|---|
committer | Mladen Turk <mturk@apache.org> | 2021-12-02 22:18:40 +0000 |
commit | 04fa93b8a60b51852ceca4660ca99c726ebb3b76 (patch) | |
tree | 8bf56099d71684421f427e7f269f32e96c8e5c5a /misc | |
parent | fd59a4a0747cf5895c21481acb67f1519b11802a (diff) | |
download | apr-04fa93b8a60b51852ceca4660ca99c726ebb3b76.tar.gz |
Get rid of check for old versions that cannot be run anyhow
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895512 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/win32/misc.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c index 295a08fb0..0ae3b6ff0 100644 --- a/misc/win32/misc.c +++ b/misc/win32/misc.c @@ -37,34 +37,9 @@ apr_status_t apr_get_oslevel(apr_oslevel_e *level) { unsigned int servpack = oslev.wServicePackMajor; - if (oslev.dwMajorVersion < 3) { + if (oslev.dwMajorVersion < 5) { apr_os_level = APR_WIN_UNSUP; } - else if (oslev.dwMajorVersion == 3) { - if (oslev.dwMajorVersion < 50) { - apr_os_level = APR_WIN_UNSUP; - } - else if (oslev.dwMajorVersion == 50) { - apr_os_level = APR_WIN_NT_3_5; - } - else { - apr_os_level = APR_WIN_NT_3_51; - } - } - else if (oslev.dwMajorVersion == 4) { - if (servpack < 2) - apr_os_level = APR_WIN_NT_4; - else if (servpack <= 2) - apr_os_level = APR_WIN_NT_4_SP2; - else if (servpack <= 3) - apr_os_level = APR_WIN_NT_4_SP3; - else if (servpack <= 4) - apr_os_level = APR_WIN_NT_4_SP4; - else if (servpack <= 5) - apr_os_level = APR_WIN_NT_4_SP5; - else - apr_os_level = APR_WIN_NT_4_SP6; - } else if (oslev.dwMajorVersion == 5) { if (oslev.dwMinorVersion == 0) { if (servpack == 0) |