Re: [xml] wsdks + winsock behaviours



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

---
Fail fast. Fail often. Fail publicly. Learn. Adapt. Repeat.
http://thecodeshop.github.com | http://jonforums.github.com/


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