cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: More CVS Makefile.vc6 Issues...

From: Gisle Vanem <giva_at_bgnett.no>
Date: Wed, 11 Aug 2004 12:02:40 +0200

"Casey ODonnell" <caseyodonnell_at_gmail.com> said:

> Let me know what your thoughts are, and if there are good ways to
> reconcile Winsock and Winsock2...

Carefully reorder your headers and/or define _WINSOCKAPI_ in
your CFLAGS.

MingW's <winsock2.h> has this at top:
#define _WINSOCK_H /* to prevent later inclusion of winsock.h */

Microsoft in their SDK where not so smart to foresee this problem.
<multi.h> could probably do something like:

#if !defined(_WINSOCKAPI_) && !defined(_WINSOCK_H)
#include <winsock2.h>
#endif

Do you provide a patch?

But, winsock2.h is only needed for the definition of fd_set.
So those args could just as well be 'void *' to avoid this problem.
Anything can be converted to 'void *' without a cast in C, right?

--gv
Received on 2004-08-11