summaryrefslogtreecommitdiff
path: root/src/tool_doswin.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-13 23:46:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-14 08:12:27 +0200
commit878214df44a41eef49b65039ab0cdfdbf847a5fe (patch)
tree1babc575b299757800890bdc7454490468cccbc3 /src/tool_doswin.c
parent7fa1578471697eac9726261c3dcd06ded994aa21 (diff)
downloadcurl-878214df44a41eef49b65039ab0cdfdbf847a5fe.tar.gz
tool: do not declare functions with Curl_ prefix
To avoid collision risks with private libcurl symbols when linked with static versions (or just versions not hiding internal symbols). Reported-by: hydra3333 on github Fixes #5219 Closes #5234
Diffstat (limited to 'src/tool_doswin.c')
-rw-r--r--src/tool_doswin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c
index 221e3864b..b7df3e615 100644
--- a/src/tool_doswin.c
+++ b/src/tool_doswin.c
@@ -697,8 +697,8 @@ cleanup:
return slist;
}
-LARGE_INTEGER Curl_freq;
-bool Curl_isVistaOrGreater;
+LARGE_INTEGER tool_freq;
+bool tool_isVistaOrGreater;
CURLcode win32_init(void)
{
@@ -713,13 +713,13 @@ CURLcode win32_init(void)
VER_SET_CONDITION(mask, VER_MINORVERSION, op);
if(VerifyVersionInfoA(&osvi, (VER_MAJORVERSION | VER_MINORVERSION), mask))
- Curl_isVistaOrGreater = true;
+ tool_isVistaOrGreater = true;
else if(GetLastError() == ERROR_OLD_WIN_VERSION)
- Curl_isVistaOrGreater = false;
+ tool_isVistaOrGreater = false;
else
return CURLE_FAILED_INIT;
- QueryPerformanceFrequency(&Curl_freq);
+ QueryPerformanceFrequency(&tool_freq);
return CURLE_OK;
}