From 7dbf5471ce451364786f745da7154e2f487df716 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 24 Mar 2025 19:16:48 -0400 Subject: [PATCH] Fix the style error and comment --- httplib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httplib.h b/httplib.h index 1f06f77..5d2d0db 100644 --- a/httplib.h +++ b/httplib.h @@ -184,10 +184,10 @@ using ssize_t = long; #define NOMINMAX #endif // NOMINMAX +#include #include #include #include -#include #ifndef WSA_FLAG_NO_HANDLE_INHERIT #define WSA_FLAG_NO_HANDLE_INHERIT 0x80 @@ -3570,8 +3570,8 @@ socket_t create_socket(const std::string &host, const std::string &ip, int port, if (socket_options) { socket_options(sock); } #ifdef _WIN32 - // Setting SO_REUSEADDR seems not to work well with AF_UNIX on windows, so avoid - // setting default_socket_options. + // Setting SO_REUSEADDR seems not to work well with AF_UNIX on windows, so + // remove the option. detail::set_socket_opt(sock, SOL_SOCKET, SO_REUSEADDR, 0); #endif