/* -------------------------------------------------------------------------
- * Project: GSocket (Generic Socket) for WX
- * Name: gsockunx.h
- * Purpose: GSocket Macintosh header
- * CVSID: $Id$
+ * Project: GSocket (Generic Socket) for WX
+ * Name: gsockunx.h
+ * Copyright: (c) Guilhem Lavaux
+ * Licence: wxWindows Licence
+ * Purpose: GSocket Macintosh header
+ * CVSID: $Id$
* -------------------------------------------------------------------------
*/
#include "gsocket.h"
#endif
+#ifndef OTUNIXERRORS
+
#include <MacHeaders.c>
#define OTUNIXERRORS 1
+// we get a conflict in OT headers otherwise :
+#undef EDEADLK
#include <OpenTransport.h>
#include <OpenTransportProviders.h>
#include <OpenTptInternet.h>
+#endif
+
/* Definition of GSocket */
class GSocket
{
public:
GSocket();
~GSocket();
- bool IsOK() { return m_ok; }
+ bool IsOk() { return m_ok; }
void Shutdown();
GSocketError SetLocal(GAddress *address);