]> git.saurik.com Git - wxWidgets.git/commitdiff
fix pointer conversion warnings on OSX 10.2
authorRyan Norton <wxprojects@comcast.net>
Thu, 3 Feb 2005 09:52:40 +0000 (09:52 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 3 Feb 2005 09:52:40 +0000 (09:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index dd874ef75788489fba32872bead87725ef754a03..aeed5804a5a1ddbfdd19a24d989445e246cfb927 100644 (file)
@@ -126,6 +126,16 @@ int _System soclose(int);
 #define SOCKOPTLEN_T SOCKLEN_T
 #endif
 
+/*
+ * 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
+#endif
+
 /*
  * MSW defines this, Unices don't.
  */