diff options
author | glx <glx@openttd.org> | 2018-12-09 02:28:14 +0100 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2018-12-27 18:09:16 +0100 |
commit | c540d7244531d501f16b485a3e45e358f98853be (patch) | |
tree | 4d270f06b2aa9b4f796d4828e5bfaf3c09cdd4b1 /src/network/core/host.cpp | |
parent | 8890926b0d1069aec7ef53fd84868a7a3ca02c05 (diff) | |
download | openttd-c540d7244531d501f16b485a3e45e358f98853be.tar.xz |
Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32
Diffstat (limited to 'src/network/core/host.cpp')
-rw-r--r-- | src/network/core/host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp index e431dde9f..216839032 100644 --- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -107,7 +107,7 @@ static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // GE freeifaddrs(ifap); } -#elif defined(WIN32) +#elif defined(_WIN32) static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // Win32 implementation { SOCKET sock = socket(AF_INET, SOCK_DGRAM, 0); |