mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
modified WinSock -> WinSock2 to pass compile on Windows (not tested)
This commit is contained in:
parent
0237efd88c
commit
90e43e15f8
3 changed files with 5 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#define STOPWATCH_H
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#define _WINSOCKAPI_
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
class CUDPSocket {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue