From b63d50671d82179e8dc67c432c8b16e1d2290224 Mon Sep 17 00:00:00 2001 From: TheOnlyJoey Date: Sat, 30 Dec 2023 08:37:58 -0800 Subject: [PATCH] Fixes Windows std::max macro problems (#1750) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 241e526..4cbe402 100644 --- a/httplib.h +++ b/httplib.h @@ -2557,7 +2557,7 @@ inline std::string trim_double_quotes_copy(const std::string &s) { inline void split(const char *b, const char *e, char d, std::function fn) { - return split(b, e, d, std::numeric_limits::max(), fn); + return split(b, e, d, (std::numeric_limits::max)(), fn); } inline void split(const char *b, const char *e, char d, size_t m,