Re: GTK on Windows 2000 pro, sp4




On Tue, 1 Dec 2009, Tor Lillqvist wrote:

You should probably open[1] a bug report about this if you wish to see it
fixed...

That's now done.

If the use of freeaddrinfo() (and possibly other API not present in
Windows 2000) can be easily made conditional at run-time (i.e. look up
the function and use it only if there, otherwise some workaround),
then that could be done.

But if it would require large changes then I am afraid we will just
have to consider GLib 2.22 being unsupported on Windows 2000 then, and
known not to work.

(The Windows SDK header wspiapi.h has an inline implementation of
freeaddrinfo() so that code can be compiled to build also on Windows
2000, but the mingw headers haven't, and the GLib distributed from
ftp.gnome.org is compiled with mingw. I don't think it would be OK to
just copy the inline implementation from the SDK headers, although
some other projects do that.)

I think the fix would be trivial if it were OK to use the MS
header wspiapi.h, but perhaps non-trivial otherwise.  The mingw
header ws2tcpip.h has a section:

#if (_WIN32_WINNT >= 0x0501)
[ give prototypes for freeaddrinfo et al. ]
#else
/* FIXME: Need WS protocol-independent API helpers.  */
#endif

Allin Cottrell



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]