Matthieu Fertré a écrit :

>  From this webpage, it seems that Microsoft provided a header file that 
> can make it avaible for older systems too.
> http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx

The trouble would be, mingw and visual studio are different beasts. A 
minimal fix already requires ugly code to detect we're using mingw.

> At runtime, the 
> WspiapiGetAddrInfo function is implemented in such a way that if the 
> /Ws2_32.dll/ or the /Wship6.dll/ (the file containing *getaddrinfo* in 
> the IPv6 Technology Preview for Windows 2000) does not include 
> *getaddrinfo*, then a version of *getaddrinfo* is implemented inline 
> based on code in the /Wspiapi.h/ header file. This inline code will be 
> used on older Windows platforms that do not natively support the 
> *getaddrinfo* function."

I guess, only if built by visual studio, as mingw doesn't have wspiapi.h 
  afaik. I no longer can test w2k unfortunately.

At least compilation is fixed for both mingw and visual studio in r5247.

Best regards,
Kurosu

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à