[antlr-interest] C target issues: winsock.h and duptree()

James Mansion james at mansionfamily.plus.com
Sun Jan 11 00:46:47 PST 2009


craig.williams at free.fr wrote:
> instead of the old winsock.h header. To get around the incompatibility, I put
> this workaround in antlr3defs.h
>
> #if defined (_WINSOCKAPI_)
> #   include <winsock2.h>
> #else
> #   include <winsock.h>
> #endif /* _WINSOCKAPI_ */
>
> Maybe you have a better idea?
>   
Drop winsock.h?  Or at least stop using it as the default?  I can't 
imagine any new software
specifically wanting to use winsock.h except by accident.



More information about the antlr-interest mailing list