corrected conditional compilation for Darwin / Mac OS X

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2002-05-08 13:19:14 +00:00
parent 5e472c1f9f
commit 01babda34e
2 changed files with 4 additions and 3 deletions

View File

@ -101,7 +101,7 @@ public:
};
#endif
#if defined(__UNIX__) && !defined(__WXMAC__)
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
#include <sys/socket.h>
#ifndef __VMS__
# include <sys/un.h>

View File

@ -46,7 +46,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxIPV4address, wxSockAddress)
#ifdef ENABLE_IPV6
IMPLEMENT_DYNAMIC_CLASS(wxIPV6address, wxSockAddress)
#endif
#if defined(__UNIX__) && !defined(__WXMAC__)
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress)
#endif
@ -71,6 +71,7 @@ wxSockAddress::wxSockAddress()
}
wxSockAddress::wxSockAddress(const wxSockAddress& other)
: wxObject()
{
Init();
@ -236,7 +237,7 @@ unsigned short wxIPV6address::Service()
#endif // 0
#if defined(__UNIX__) && !defined(__WXMAC__)
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
// ---------------------------------------------------------------------------
// wxUNIXaddress