X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9160e5eacd78ddb4c1aa613b4c5b9773328d300..76c7012c6feb0846a8d1dd7d2b71a7a3c0c0ed18:/src/unix/gsocket.cpp?ds=sidebyside 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 /*