#ifndef _WX_NETWORK_ADDRESS_H
#define _WX_NETWORK_ADDRESS_H
-#ifdef __GNUG__
-#pragma interface
+#if defined(__GNUG__) && !defined(__APPLE__)
+#pragma interface "sckaddr.h"
#endif
#include "wx/defs.h"
void SetAddress(GAddress *address);
// we need to be able to create copies of the addresses polymorphically (i.e.
- // wihtout knowing the exact address class)
+ // without knowing the exact address class)
virtual wxSockAddress *Clone() const = 0;
protected:
GAddress *m_address;
+
+private:
+ void Init();
};
class WXDLLEXPORT wxIPV4address : public wxSockAddress {
};
#endif
-#if defined(__UNIX__) && !defined(__WXMAC__)
+#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
#include <sys/socket.h>
#ifndef __VMS__
# include <sys/un.h>