CMakeLists,network: Create YUZU_UNIX macro to replace __unix__

__unix__ is not predefined on Apple platforms even though they are Unix.
This commit is contained in:
comex 2020-08-31 10:09:06 -04:00
parent 0dc234c5ea
commit 0e122c13ad
3 changed files with 8 additions and 5 deletions

View file

@ -9,7 +9,7 @@
#if defined(_WIN32)
#include <winsock.h>
#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
};