yhirose 1 year ago
parent
commit
7bd316f3d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httplib.h

+ 1 - 1
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<int>(strlen(s));
   auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0);