summaryrefslogtreecommitdiffstats
path: root/src/core/network/network.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2020-08-31 16:09:06 +0200
committercomex <comexk@gmail.com>2020-12-07 00:56:40 +0100
commit0e122c13ad42c9b782d556bfb1d6541499cd650e (patch)
tree899ffb51a317e1ee5c1c9a9df8ffc4614285f411 /src/core/network/network.cpp
parentMerge pull request #5146 from comex/xx-num (diff)
downloadyuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.gz
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.bz2
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.lz
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.xz
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.tar.zst
yuzu-0e122c13ad42c9b782d556bfb1d6541499cd650e.zip
Diffstat (limited to 'src/core/network/network.cpp')
-rw-r--r--src/core/network/network.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp
index 5ef2e8511..5a8cc6fc2 100644
--- a/src/core/network/network.cpp
+++ b/src/core/network/network.cpp
@@ -11,7 +11,7 @@
#ifdef _WIN32
#define _WINSOCK_DEPRECATED_NO_WARNINGS // gethostname
#include <winsock2.h>
-#elif __unix__
+#elif YUZU_UNIX
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
@@ -54,7 +54,7 @@ constexpr IPv4Address TranslateIPv4(in_addr addr) {
sockaddr TranslateFromSockAddrIn(SockAddrIn input) {
sockaddr_in result;
-#ifdef __unix__
+#if YUZU_UNIX
result.sin_len = sizeof(result);
#endif
@@ -99,7 +99,7 @@ bool EnableNonBlock(SOCKET fd, bool enable) {
return ioctlsocket(fd, FIONBIO, &value) != SOCKET_ERROR;
}
-#elif __unix__ // ^ _WIN32 v __unix__
+#elif YUZU_UNIX // ^ _WIN32 v YUZU_UNIX
using SOCKET = int;
using WSAPOLLFD = pollfd;