From 7bd316f3d0a6bee6bbab79ec3896f9fd9a2a9ad1 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 14 Nov 2024 16:46:27 -0500 Subject: [PATCH] Fix #1977 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 1773014d24..2c3423fc2c 100644 --- a/httplib.h +++ b/httplib.h @@ -2259,7 +2259,7 @@ make_basic_authentication_header(const std::string &username, namespace detail { #if defined(_WIN32) -std::wstring u8string_to_wstring(const char *s) { +inline std::wstring u8string_to_wstring(const char *s) { std::wstring ws; auto len = static_cast(strlen(s)); auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0);