diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-12-28 23:50:49 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-12-28 23:50:49 +0000 |
commit | 4e3d20f54305554d1469a63024b47824a37573e0 (patch) | |
tree | db19fb3b04d25a636fb4becd5c38c8b1a47864ea /dso | |
parent | 367467cffe8363cd2d669693a94396794da8a646 (diff) | |
download | libapr-4e3d20f54305554d1469a63024b47824a37573e0.tar.gz |
Substantial optimization of the os_level semantic. Since this is entirely
for internal consumption, and apr_initialize must be called, resolve the
situation once and use the static, shared value for the remainder of the
program execution. Next step is to allow conditional builds [excluding
older 9x paths] if the user has no interest in 9x support.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r-- | dso/win32/dso.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dso/win32/dso.c b/dso/win32/dso.c index d07cc0b43..974bf9775 100644 --- a/dso/win32/dso.c +++ b/dso/win32/dso.c @@ -89,8 +89,7 @@ APR_DECLARE(apr_status_t) apr_dso_load(struct apr_dso_handle_t **res_handle, UINT em; #if APR_HAS_UNICODE_FS - apr_oslevel_e os_level; - if (!apr_get_oslevel(ctx, &os_level) && os_level >= APR_WIN_NT) + if (apr_os_level >= APR_WIN_NT) { apr_wchar_t wpath[APR_PATH_MAX]; if ((rv = utf8_to_unicode_path(wpath, sizeof(wpath) |