I noticed earlier that MSVC might not compile this without these extra braces

git-svn-id: https://svn.eduke32.com/eduke32@210 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-07-04 19:58:10 +00:00
parent d93ed5b8cd
commit e32c2651f2

View file

@ -790,11 +790,13 @@ const char *getexternaladdress(void)
return(ipaddr);
#ifdef _WIN32
WSADATA ws;
{
WSADATA ws;
if (WSAStartup(0x101,&ws) == SOCKET_ERROR) {
initprintf("mmulti: Winsock error in getexternaladdress() (%d)\n",errno);
return(0);
if (WSAStartup(0x101,&ws) == SOCKET_ERROR) {
initprintf("mmulti: Winsock error in getexternaladdress() (%d)\n",errno);
return(0);
}
}
#endif