mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 04:37:51 +00:00
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:
parent
03aee5c798
commit
3c7962df41
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue