aboutsummaryrefslogtreecommitdiff
path: root/src/transports
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-13 17:06:39 +0100
committerStefan Boberg <[email protected]>2026-03-13 17:06:39 +0100
commit3abde8d88bde436dce423eae9edee0f4e8af915a (patch)
tree885ae916a94c9b350d72717666f43e78bef88d4e /src/transports
parentUnix Domain Socket auto discovery (#833) (diff)
downloadzen-3abde8d88bde436dce423eae9edee0f4e8af915a.tar.xz
zen-3abde8d88bde436dce423eae9edee0f4e8af915a.zip
Add clang-cl build support
- Add clang-cl warning suppressions in xmake.lua matching Linux/macOS set - Guard /experimental:c11atomics with {tools="cl"} for MSVC-only - Fix long long / int64_t redefinition in string.h for clang-cl - Fix unclosed namespace in callstacktrace.cpp #else branch - Fix missing override in httpplugin.cpp - Reorder WorkerPool fields to match designated initializer order - Use INVALID_SOCKET instead of SOCKET_ERROR for SOCKET comparisons
Diffstat (limited to 'src/transports')
-rw-r--r--src/transports/winsock/winsock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/winsock/winsock.cpp b/src/transports/winsock/winsock.cpp
index f98984726..c1f4f6abe 100644
--- a/src/transports/winsock/winsock.cpp
+++ b/src/transports/winsock/winsock.cpp
@@ -271,7 +271,7 @@ WinsockTransportPlugin::Initialize(TransportServer* ServerInterface)
m_ServerInterface = ServerInterface;
m_ListenSocket = socket(AF_INET6, SOCK_STREAM, 0);
- if (m_ListenSocket == SOCKET_ERROR || m_ListenSocket == INVALID_SOCKET)
+ if (m_ListenSocket == INVALID_SOCKET)
{
throw std::system_error(std::error_code(WSAGetLastError(), std::system_category()),
"socket creation failed in HTTP plugin server init");
@@ -302,7 +302,7 @@ WinsockTransportPlugin::Initialize(TransportServer* ServerInterface)
do
{
- if (SOCKET ClientSocket = accept(m_ListenSocket, NULL, NULL); ClientSocket != SOCKET_ERROR)
+ if (SOCKET ClientSocket = accept(m_ListenSocket, NULL, NULL); ClientSocket != INVALID_SOCKET)
{
int Flag = 1;
setsockopt(ClientSocket, IPPROTO_TCP, TCP_NODELAY, (char*)&Flag, sizeof(Flag));