From 1027d07704836c8d642abbed34ab98535de47433 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 18 Jul 2026 02:42:39 +0200 Subject: [PATCH] timeval: make `Curl_freq` variable static (Windows) Follow-up to 64d4f5c4b660be112a02be104e7314e8bf264caa #20852 Closes #22346 --- lib/curlx/timeval.c | 2 +- lib/system_win32.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/curlx/timeval.c b/lib/curlx/timeval.c index 2363e60839..7e9f3f71e8 100644 --- a/lib/curlx/timeval.c +++ b/lib/curlx/timeval.c @@ -27,7 +27,7 @@ #include "system_win32.h" -LARGE_INTEGER Curl_freq; +static LARGE_INTEGER Curl_freq; /* For tool or tests, we must initialize before calling curlx_now(). Providing this function here is wrong. */ diff --git a/lib/system_win32.h b/lib/system_win32.h index 8a51f09670..d504b563db 100644 --- a/lib/system_win32.h +++ b/lib/system_win32.h @@ -26,8 +26,6 @@ #include "curl_setup.h" #ifdef _WIN32 -extern LARGE_INTEGER Curl_freq; - CURLcode Curl_win32_init(long flags); void Curl_win32_cleanup(long init_flags); #else