Fix Windows compilation.

This commit is contained in:
Jonathan Naylor 2020-09-20 15:47:58 +01:00
parent a72977ec3d
commit f68d1adb1b
16 changed files with 13 additions and 8 deletions

View File

@ -29,6 +29,7 @@
#include "Log.h"
#if defined(_WIN32) || defined(_WIN64)
#include <WS2tcpip.h>
#include <Windows.h>
#else
#include <sys/socket.h>

View File

@ -35,7 +35,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#else
#include <winsock.h>
#include <WS2tcpip.h>
#endif
class CP25Gateway

View File

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

View File

@ -20,6 +20,7 @@
#define THREAD_H
#if defined(_WIN32) || defined(_WIN64)
#include <WS2tcpip.h>
#include <windows.h>
#else
#include <pthread.h>

View File

@ -32,7 +32,6 @@
#include <arpa/inet.h>
#include <errno.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

View File

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200906";
const char* VERSION = "20200920";
#endif

View File

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

View File

@ -32,7 +32,6 @@
#include <arpa/inet.h>
#include <errno.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

View File

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200906";
const char* VERSION = "20200920";
#endif

View File

@ -20,6 +20,7 @@
#define MUTEX_H
#if defined(_WIN32) || defined(_WIN64)
#include <WS2tcpip.h>
#include <windows.h>
#else
#include <pthread.h>

View File

@ -26,6 +26,7 @@
#include "Log.h"
#if defined(_WIN32) || defined(_WIN64)
#include <WS2tcpip.h>
#include <Windows.h>
#else
#include <sys/socket.h>

View File

@ -35,7 +35,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#else
#include <winsock.h>
#include <WS2tcpip.h>
#endif
class CP25Repeater {

View File

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

View File

@ -20,6 +20,7 @@
#define THREAD_H
#if defined(_WIN32) || defined(_WIN64)
#include <WS2tcpip.h>
#include <windows.h>
#else
#include <pthread.h>

View File

@ -32,7 +32,6 @@
#include <arpa/inet.h>
#include <errno.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

View File

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200908";
const char* VERSION = "20200920";
#endif