diff options
author | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2006-06-02 04:35:26 +0000 |
---|---|---|
committer | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2006-06-02 04:35:26 +0000 |
commit | 3d4beb53449cc233a55bdbae571b487a0806a985 (patch) | |
tree | 8536922db2d9579d6a7342b6dedd6cad99d144ee /winsup/doc | |
parent | 2346864a451f0e82c26d083c1fee7c6df07edc68 (diff) | |
download | newlib-3d4beb53449cc233a55bdbae571b487a0806a985.zip newlib-3d4beb53449cc233a55bdbae571b487a0806a985.tar.gz newlib-3d4beb53449cc233a55bdbae571b487a0806a985.tar.bz2 |
Replace references to depracated Win32_Winsock macro with __USE_W32_WINSOCK
Diffstat (limited to 'winsup/doc')
-rw-r--r-- | winsup/doc/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/doc/faq-api.xml | 17 |
2 files changed, 16 insertions, 6 deletions
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index cf44de2..a747f74 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,8 @@ +2006-05-30 Dave Korn <dave.korn@artimi.com> + + * faq-api.xml (faq.api.winsock): Replace references to depracated + Win32_Winsock macro with __USE_W32_WINSOCK, and enlarge on details. + 2006-05-24 Christopher Faylor <cgf@timesys.com> * configure.in: Update to newer autoconf. diff --git a/winsup/doc/faq-api.xml b/winsup/doc/faq-api.xml index 1a9c6c5..ad9ea72 100644 --- a/winsup/doc/faq-api.xml +++ b/winsup/doc/faq-api.xml @@ -277,12 +277,17 @@ netdb. It isn't a good idea to use it in your applications. <question><para>I don't want Unix sockets, how do I use normal Win32 winsock?</para></question> <answer> -<para><emphasis role='bold'>(Please note: This section has not yet been updated for the latest net release.)</emphasis> -</para> -<para>To use the vanilla Win32 winsock, you just need to #define Win32_Winsock -and #include "windows.h" at the top of your source file(s). You'll also -want to add -lwsock32 to the compiler's command line so you link against -libwsock32.a. +<para>To use the vanilla Win32 winsock, you just need to #define __USE_W32_WINSOCK +and #include "windows.h" (or "winsock2.h" at the top of your source file(s). You may +find it easier to add "-D__USE_W32_WINSOCK" to the CFLAGS settings in your makefile, +if you are using one, as this will then apply to all your source files. It is also +worth using "#define WIN32_LEAN_AND_MEAN" before you include the windows header file, +as this will prevent it from pulling in lots of header files for all sorts of unrelated +windows APIs when all you want is the Winsock definitions; again, this could be set +for the entire project in your CFLAGS. +</para><para> +You'll also need to add -lwsock32 to the compiler's command line (or the makefile's +list of link libs) so that you link against libwsock32.a. </para> </answer></qandaentry> |