diff options
| author | 2020-08-31 10:09:06 -0400 | |
|---|---|---|
| committer | 2020-12-06 18:56:40 -0500 | |
| commit | 0e122c13ad42c9b782d556bfb1d6541499cd650e (patch) | |
| tree | 899ffb51a317e1ee5c1c9a9df8ffc4614285f411 /src/core/network/sockets.h | |
| parent | Merge pull request #5146 from comex/xx-num (diff) | |
| download | yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.gz yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.xz yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.zip | |
CMakeLists,network: Create YUZU_UNIX macro to replace __unix__
__unix__ is not predefined on Apple platforms even though they are Unix.
Diffstat (limited to 'src/core/network/sockets.h')
| -rw-r--r-- | src/core/network/sockets.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 9 | 9 | ||
| 10 | #if defined(_WIN32) | 10 | #if defined(_WIN32) |
| 11 | #include <winsock.h> | 11 | #include <winsock.h> |
| 12 | #elif !defined(__unix__) | 12 | #elif !YUZU_UNIX |
| 13 | #error "Platform not implemented" | 13 | #error "Platform not implemented" |
| 14 | #endif | 14 | #endif |
| 15 | 15 | ||
| @@ -84,7 +84,7 @@ public: | |||
| 84 | 84 | ||
| 85 | #if defined(_WIN32) | 85 | #if defined(_WIN32) |
| 86 | SOCKET fd = INVALID_SOCKET; | 86 | SOCKET fd = INVALID_SOCKET; |
| 87 | #elif defined(__unix__) | 87 | #elif YUZU_UNIX |
| 88 | int fd = -1; | 88 | int fd = -1; |
| 89 | #endif | 89 | #endif |
| 90 | }; | 90 | }; |