ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibCore: Fix SocketAddress.h compilation errors on Windows

Open stasoid opened this issue 3 months ago • 10 comments

Including winsock2.h in a header file is undesirable for architectural reasons, so I pulled the needed types from ws2def.h and ws2ipdef.h into a separate header.

Files inaddr.h and afunix.h are tiny and can be included directly. They each define a single struct (in_addr and sockaddr_un respectively).

I removed the #if (_WIN32_WINNT < 0x0600) code because it is not relevant for us. It is intended for Windows XP/Windows Server 2003 and earlier, but Ladybird doesn't support 32-bit, and 64-bit Windows XP is very rare.

stasoid avatar Dec 01 '24 05:12 stasoid