Mercurial > hg > nnchat
changeset 69:79982b0aad97
Fix MinGW kludge.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 14 Nov 2008 08:46:16 +0200 |
parents | 3ab7751fdad1 |
children | 5228ad7b4f57 |
files | nnchat.c |
diffstat | 1 files changed, 8 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Fri Nov 14 07:15:57 2008 +0200 +++ b/nnchat.c Fri Nov 14 08:46:16 2008 +0200 @@ -650,14 +650,15 @@ #ifdef __WIN32 { - /* Initialize WinSock, if needed */ - WSADATA wsaData; - int err = WSAStartup(0x0101, &wsaData); - if (err != 0) { - THERR("Could not initialize WinSock DLL: %d\n", err); - goto err_exit; + /* Initialize WinSock, if needed */ + WSADATA wsaData; + int err = WSAStartup(0x0101, &wsaData); + if (err != 0) { + THERR("Could not initialize WinSock DLL: %d\n", err); + goto err_exit; + } + networkInit = TRUE; } - networkInit = TRUE; #endif /* Okay ... */ @@ -1011,8 +1012,3 @@ return 0; } - -#ifdef __WIN32 -/* This is a really weird kludge ... */ -} -#endif