modified WinSock -> WinSock2 to pass compile on Windows (not tested)

This commit is contained in:
SASANO Takayoshi 2019-10-05 06:16:33 +09:00
parent 0237efd88c
commit 90e43e15f8
3 changed files with 5 additions and 2 deletions

View file

@ -20,6 +20,7 @@
#define STOPWATCH_H
#if defined(_WIN32) || defined(_WIN64)
#define _WINSOCKAPI_
#include <windows.h>
#else
#include <sys/time.h>

View file

@ -30,7 +30,8 @@
#include <arpa/inet.h>
#include <errno.h>
#else
#include <winsock.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#include <string>

View file

@ -31,7 +31,8 @@
#include <arpa/inet.h>
#include <errno.h>
#else
#include <winsock.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
class CUDPSocket {