Replaced 'linux' with '__unix__' because the same header files are included on macOS as well.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef linux
|
#ifdef __unix__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
#define _SOCK_CLASS
|
#define _SOCK_CLASS
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#ifdef linux
|
#ifdef __unix__
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef linux
|
#ifdef __unix__
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#ifdef linux
|
#ifdef __unix__
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Reference in New Issue
Block a user