From 90e43e15f8f82eea7c4642238af6fb30c8fb8167 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Sat, 5 Oct 2019 06:16:33 +0900 Subject: [PATCH] modified WinSock -> WinSock2 to pass compile on Windows (not tested) --- StopWatch.h | 1 + TCPSocket.h | 3 ++- UDPSocket.h | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/StopWatch.h b/StopWatch.h index 3f8fa19..5ddccbd 100644 --- a/StopWatch.h +++ b/StopWatch.h @@ -20,6 +20,7 @@ #define STOPWATCH_H #if defined(_WIN32) || defined(_WIN64) +#define _WINSOCKAPI_ #include #else #include diff --git a/TCPSocket.h b/TCPSocket.h index f3321ed..7a20eb3 100644 --- a/TCPSocket.h +++ b/TCPSocket.h @@ -30,7 +30,8 @@ #include #include #else -#include +#include +#include #endif #include diff --git a/UDPSocket.h b/UDPSocket.h index 729a7a3..ec5de9c 100644 --- a/UDPSocket.h +++ b/UDPSocket.h @@ -31,7 +31,8 @@ #include #include #else -#include +#include +#include #endif class CUDPSocket {