From 0e122c13ad42c9b782d556bfb1d6541499cd650e Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 31 Aug 2020 10:09:06 -0400 Subject: CMakeLists,network: Create YUZU_UNIX macro to replace __unix__ __unix__ is not predefined on Apple platforms even though they are Unix. --- src/core/network/sockets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/network/sockets.h') diff --git a/src/core/network/sockets.h b/src/core/network/sockets.h index 7bdff0fe4..a44393325 100644 --- a/src/core/network/sockets.h +++ b/src/core/network/sockets.h @@ -9,7 +9,7 @@ #if defined(_WIN32) #include -#elif !defined(__unix__) +#elif !YUZU_UNIX #error "Platform not implemented" #endif @@ -84,7 +84,7 @@ public: #if defined(_WIN32) SOCKET fd = INVALID_SOCKET; -#elif defined(__unix__) +#elif YUZU_UNIX int fd = -1; #endif }; -- cgit v1.2.3