From 128eed6c642f307d893f8f9eb491ee7ee3bc8834 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Jul 2010 11:42:43 +0000 Subject: [PATCH] Build fix: don't test for __WXMSW__ using #if in wx/defs.h. __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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 9ac8e09e78..26acd387f0 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -195,7 +195,7 @@ /* 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