Skip to content

Commit 7dbf547

Browse files
committed
Fix the style error and comment
1 parent 72b35be commit 7dbf547

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httplib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ using ssize_t = long;
184184
#define NOMINMAX
185185
#endif // NOMINMAX
186186

187+
#include <afunix.h>
187188
#include <io.h>
188189
#include <winsock2.h>
189190
#include <ws2tcpip.h>
190-
#include <afunix.h>
191191

192192
#ifndef WSA_FLAG_NO_HANDLE_INHERIT
193193
#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,
35703570
if (socket_options) { socket_options(sock); }
35713571

35723572
#ifdef _WIN32
3573-
// Setting SO_REUSEADDR seems not to work well with AF_UNIX on windows, so avoid
3574-
// setting default_socket_options.
3573+
// Setting SO_REUSEADDR seems not to work well with AF_UNIX on windows, so
3574+
// remove the option.
35753575
detail::set_socket_opt(sock, SOL_SOCKET, SO_REUSEADDR, 0);
35763576
#endif
35773577

0 commit comments

Comments
 (0)