c-strtof, c-strtod, c-strtold: Make multithread-safe.
[gnulib.git] / doc / windows-sockets.texi
blob9f81e51ac296e7f5138505a782b27b750edfcbfb
1 @node Windows sockets
2 @section Windows sockets
4 One of the portability problems for native Windows are sockets and
5 networking functions.
7 @subsection Getaddrinfo and WINVER
9 This was written for the @code{getaddrinfo} module, but may be applicable to
10 other functions too.
12 The @code{getaddrinfo} function exists in @code{ws2tcpip.h} and @code{-lws2_32}
13 on Windows XP@.  The function declaration is present if @code{WINVER >= 0x0501}.
14 Windows 2000 does not have @code{getaddrinfo} in its @file{WS2_32.DLL}.
16 Thus, if you want to assume Windows XP or later, you can add
17 @code{AC_DEFINE([WINVER], [0x0501])} to avoid compiling the (partial)
18 @code{getaddrinfo} implementation.
20 If you want to support Windows 2000, don't do anything.  The
21 replacement function will open @file{WS2_32.DLL} during run-time to
22 see if there is a @code{getaddrinfo} function available, and use it when
23 available.