Re: [xml] wsdks + winsock behaviours
- From: LRN <lrn1986 gmail com>
- To: xml gnome org
- Subject: Re: [xml] wsdks + winsock behaviours
- Date: Mon, 01 Apr 2013 00:37:20 +0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 31.03.2013 21:23, Jon wrote:
LRN wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
1) MS PSDK 7 includes winsock.h from windows.h only when
compiling for MAC winsock.h defines _WINSOCKAPI_, it is used as
#include guard
With MS PSDK v7.1 on my Win7 32-bit box I see something different.
Windows.h only includes winsock.h if WIN32_LEAN_AND_MEAN is not
defined and _MAC is not defined. Something similar to:
#ifndef WIN32_LEAN_AND_MEAN ... #ifndef _MAC ... # include
<winsock.h> #endif ... #endif
Jon
...ok, i must be sleepy or something, because it's the same in 7.0,
but i mus-interpreted it.
/me re-reads carefully.
Yes, if WIN32_LEAN_AND_MEAN is not defined, and _MAC is not defined,
then <winsock.h> is included from windows.h.
OK. That's basically the same as mingw-w64 windows.h then, except that
MS SDK doesn't throw warnings in winsock2.h when _WINSOCKAPI_ is
already defined (other than a pre-processor warning about re-definition).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRWJ6AAAoJEOs4Jb6SI2Cwc88IAM2MP7fcWgIXfJOcQTaQujcJ
sq0BrOcUkBtD9uLbqiaKu35Rfn3jf8kobpbkgDEBGE3cGPShu16EYuBwDeGJFp5V
wmBpBF8Tm2/ZXlHv684KbhqGxd9hn0uIjfxzMaqDm4728dy4/BFKi8paybaMjNA2
LTujkaedSh9AGeVOpx0tY2+HkednonpPZAbH/1Pr+IFEkBIbITtYQtMvCicv4S+P
ucPGvM6ZH5NHyK+UiUF6hHJm7viorY5ikHyWDUHlcYSnWvcMWEQCw14y7ZJOclGb
bRoymCKyfpx4xPtjPqr7HnAeegGJr3Q6kt/X3yWmLFv91tImSU/4e+Cx8pcxWhw=
=Oazc
-----END PGP SIGNATURE-----
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]