From b713a3a65100214a83692080cbb7e70af3a63cd7 Mon Sep 17 00:00:00 2001 From: Wang Gao <80475837@qq.com> Date: Sat, 10 Oct 2020 11:02:50 -0500 Subject: [PATCH] fix MSVC2015 error: std::tolower to ::lower (#689) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index a881cec..66bbdf0 100644 --- a/httplib.h +++ b/httplib.h @@ -1229,7 +1229,7 @@ inline std::string from_i_to_hex(size_t n) { inline bool start_with(const std::string &a, const std::string &b) { if (a.size() < b.size()) { return false; } for (size_t i = 0; i < b.size(); i++) { - if (std::tolower(a[i]) != std::tolower(b[i])) { return false; } + if (::tolower(a[i]) != ::tolower(b[i])) { return false; } } return true; }