wwwsys.h / winsock

(using 5.3.2)

lines 157ff in wwwsys.h should read:

#ifdef WWW_MSWINDOWS

#include <windows.h>
#if defined(WIN32_MEAN_AND_LEAN)
#if _WIN32_WINNT >= 0x0400
#include <winsock2.h>
#else
#include <winsock.h>
#endif
#endif
#include <io.h>
#include <process.h>

#include "windows/config.h"

etc.

i.e., winsock[2].h does not have to be included explicitly,
provided _WIN32_WINNT has been set -- preferrably by config --,
windows.h will include the correct version, unless 
WIN32_MEAN_AND_LEAN is set.

NB.: for WinNT >= 4.0 (at least), winsock2.h must be included,
winsock.h is no longer valid.

Kind regards,

/oliver

Received on Tuesday, 14 August 2001 05:14:40 UTC