Fix header includes for windows not being wrapped in platform guards.

This commit is contained in:
2025-02-21 14:29:24 -06:00
parent b10b5a7a32
commit 7a0899ad2a
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
#include "Sockets/IPAddress.hpp"
#if defined(__linux__) || defined(__APPLE__)
#elif defined(_WIN32)
#include <ws2tcpip.h>
#endif
#include <Sockets/Exceptions.hpp>
#include <Sockets/Commons.hpp>

View File

@@ -1,8 +1,9 @@
#include <Sockets/Sockets.hpp>
#include <Sockets/Exceptions.hpp>
#include <cstring>
#if defined(_WIN32)
#include <ws2tcpip.h>
#endif
namespace Socket
{

View File

@@ -9,7 +9,7 @@
#include <memory>
#include <string>
#include <iostream>
#include <ws2tcpip.h>
#include <jlog/Logger.hpp>
#if defined(__linux__) || defined(__APPLE__)
@@ -20,6 +20,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
namespace Socket {