[Mono-list] Latest mono for Cygwin
Dick Porter
dick@ximian.com
Thu, 31 Jan 2002 11:08:21 +0000
On Thu, Jan 31, 2002 at 10:19:04AM +0000, Dan Lewis wrote:
> I see that in the io-layer.h file. But take a look at w32api/windows.h, about
> line 145. Winsock is explicitly excluded from Cygwin builds - this is because
> winsock clashes with cygwin's BSD implementation. If you try including Winsock
> by force, all hell breaks loose at link time.
Looks like in my copy of w32api i just need to define __USE_W32_SOCKETS:
#if defined(Win32_Winsock)
#warning "The Win32_Winsock macro name is deprecated.\
Please use __USE_W32_SOCKETS instead"
#ifndef __USE_W32_SOCKETS
#define __USE_W32_SOCKETS
#endif
#endif
#if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
#if (_WIN32_WINNT >= 0x0400) && (__W32API_MAJOR_VERSION > 0)
#include <winsock2.h>
/*
* MS likes to include mswsock.h here as well,
* but that can cause undefined symbols if
* winsock2.h is included before windows.h
*/
#else
#include <winsock.h>
#endif /* (_WIN32_WINNT >= 0x0400) && (__W32API_MAJOR_VERSION > 0) */
#endif
- Dick