diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-05-21 20:43:40 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-05-21 20:43:40 +0200 |
commit | 1c6c2564d51ac3b7a64470ebf5c4cc1510070e32 (patch) | |
tree | b87961bf4fb49356279eea11d5e222b4c02ed98d /src | |
parent | cb1b03b2537c2860344cd4533a4261fd2adad933 (diff) |
blarg
Diffstat (limited to 'src')
-rw-r--r-- | src/wx/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/Platform.cpp b/src/wx/Platform.cpp index 95da1bc..8fc05c6 100644 --- a/src/wx/Platform.cpp +++ b/src/wx/Platform.cpp @@ -55,7 +55,7 @@ u8 PacketBuffer[2048]; bool MP_Init() { - BOOL opt_true = TRUE; + int opt_true = 1; int res; #ifdef __WXMSW__ @@ -72,7 +72,7 @@ bool MP_Init() return false; } - res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(BOOL)); + res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(int)); if (res < 0) { closesocket(MPSocket); |