Updated UNIX macro checks, to account for MacOS

master
Aadhavan Srinivasan 7 months ago
parent 2c7d1d0b43
commit 6acbf90d80

@ -9,7 +9,7 @@ extern "C" {
#include <winsock.h>
#include <ws2tcpip.h>
#endif
#ifdef __unix__
#if defined(__unix) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

@ -2,7 +2,7 @@
#define _SOCK_CLASS
#include <string>
#ifdef __unix__
#if defined(__unix__) || defined(__unix) ||(defined(__APPLE__) && defined(__MACH__))
#include <sys/socket.h>
#endif
#ifdef _WIN32

@ -2,7 +2,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#ifdef __unix__
#if defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#include <arpa/inet.h>
#endif
#ifdef _WIN32

@ -1,4 +1,4 @@
#ifdef __unix__
#if defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#include <sys/socket.h>
#endif
#ifdef _WIN32

Loading…
Cancel
Save