From 39707b8019feac3a202accc3e84496669c837e01 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Fri, 4 Feb 2005 05:52:32 +0000 Subject: [PATCH] fix warnings on cocoa 10.2 also git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index aeed5804a5..eb7b1b5678 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -129,11 +129,13 @@ int _System soclose(int); /* * OSX 10.2 has int args instead of SOCKLENXXX_T */ -#if defined( __WXMAC__ ) && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 ) -#undef SOCKOPTLEN_T -#undef SOCKLEN_T -#define SOCKOPTLEN_T int -#define SOCKLEN_T int +#if defined( __WXMAC__ ) || defined ( __WXCOCOA__ ) +# if ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 ) +# undef SOCKOPTLEN_T +# undef SOCKLEN_T +# define SOCKOPTLEN_T int +# define SOCKLEN_T int +# endif #endif /* -- 2.50.0