diff options
| author | bunnei <bunneidev@gmail.com> | 2020-12-07 15:32:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-07 15:32:06 -0800 |
| commit | f782aecf4d130b45173d8a4a2556b13244317328 (patch) | |
| tree | dc4f6ebabd5d0e9fe2abc9995f997faf56d3a73a /src/core/network/sockets.h | |
| parent | 5cd051ecede06b728198424166080c5e5abb18cb (diff) | |
| parent | 0e122c13ad42c9b782d556bfb1d6541499cd650e (diff) | |
Merge pull request #5153 from comex/xx-unix
CMakeLists,network: Create YUZU_UNIX macro to replace __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 @@ #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 }; |
