]> git.saurik.com Git - wxWidgets.git/commitdiff
Build fix: don't test for __WXMSW__ using #if in wx/defs.h.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2010 11:42:43 +0000 (11:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2010 11:42:43 +0000 (11:42 +0000)
__WXMSW__ should be tested using #ifdef but in fact there doesn't seem to be
any need to test for it at all here as __CYGWIN__ implies __WXMSW__ anyhow.

Closes #12266.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 9ac8e09e780e7a6185e29f125661ff0933756acf..26acd387f09f60b36c4024928e04471246cd2403 100644 (file)
 
 /* Prevents conflicts between sys/types.h and winsock.h with Cygwin, */
 /* when using Windows sockets. */
 
 /* Prevents conflicts between sys/types.h and winsock.h with Cygwin, */
 /* when using Windows sockets. */
-#if defined(__CYGWIN__) && (__WXMSW__)
+#ifdef __CYGWIN__
 #define __USE_W32_SOCKETS
 #endif
 
 #define __USE_W32_SOCKETS
 #endif