Avoided SDL macro.

This commit is contained in:
Guillaume Melquiond 2010-10-31 09:00:17 +00:00
parent 63caf15a2f
commit 46dba2216f

View file

@ -621,6 +621,7 @@ static SOCKET_STATE receive_buf(TCPsocket sock, std::vector<char>& buf)
return SOCKET_ERRORED;
}
#undef SDLNet_Read32
const int len = SDLNet_Read32(reinterpret_cast<void*>(num_buf));
if(len < 1 || len > 100000000) {