mac support as stubs added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
1999-01-01 16:22:21 +00:00
parent 5bd22e2636
commit 17dff81c71
28 changed files with 458 additions and 104 deletions

View File

@@ -33,6 +33,10 @@
#include "wx/defs.h"
#include "wx/object.h"
#if defined(__WXMAC__)
#include "/wx/mac/macsock.h"
#endif
#if defined(__WINDOWS__)
#include <winsock.h>
#endif // __WINDOWS__
@@ -121,7 +125,11 @@ bool wxIPV4address::Hostname(const wxString& name)
return FALSE;
}
} else {
#ifdef __WXMAC__
long len_addr = inet_addr(name.GetData()).s_addr ;
#else
long len_addr = inet_addr(name.GetData());
#endif
if (len_addr == -1)
return FALSE;
m_addr->sin_addr.s_addr = len_addr;