#ifndef __GSOCKET_H
#define __GSOCKET_H
+#include "wx/setup.h"
+
+#if wxUSE_SOCKETS
+
+#include <stddef.h>
#include <sys/types.h>
#if !defined(__cplusplus)
-
typedef int bool;
-
#endif
#ifndef TRUE
GSOCK_INVSOCK,
GSOCK_NOHOST,
GSOCK_INVPORT,
- GSOCK_TRYAGAIN
+ GSOCK_WOULDBLOCK,
+ GSOCK_TIMEDOUT,
+ GSOCK_MEMERR
} GSocketError;
typedef enum {
#ifdef __cplusplus
};
+#endif /* __cplusplus */
+
+
#endif
+ /* wxUSE_SOCKETS */
#endif
- /* __GSOCKET_H */
+ /* __GSOCKET_H */