W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

wwwsys.h / winsock

From: Oliver Steinau <Oliver.Steinau@STencode.de>
Date: Tue, 14 Aug 2001 11:14:09 +0200
Message-ID: <2B88AE35C609DF4F852D31FFA6FD5EE601A382@CAESAR.STencode.de>
To: <www-lib@w3.org>
(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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT