#ifndef __GSOCK_UNX_H
#define __GSOCK_UNX_H
-#include <wx/gsocket.h>
+#include "wx/setup.h"
+
+#if wxUSE_SOCKETS
+
+#include "wx/gsocket.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Definition of GSocket */
struct _GSocket {
GAddress *m_local, *m_peer;
GSocketError m_error;
- bool m_blocking, m_server, m_stream, m_oriented;
+ bool m_non_blocking, m_server, m_stream, m_oriented;
unsigned long m_timeout;
/* Callbacks */
- GSocketCallback m_fbacks[GSOCK_MAX_EVENT];
+ GSocketCallback m_cbacks[GSOCK_MAX_EVENT];
char *m_data[GSOCK_MAX_EVENT];
/* IO calls associated */
/* Local address family */
GSocketError _GAddress_Init_UNIX(GAddress *address);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif
+ /* wxUSE_SOCKETS */
+
#endif
+ /* __GSOCK_UNX_H */