]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gsocket.h
Removed LastError() from wxFilterStream
[wxWidgets.git] / include / wx / gsocket.h
index 6f606332a928d04128be525fa5ffdb977c8918c6..938b6f0b77794b3fd127b0a1e8e645d07a22d11e 100644 (file)
@@ -8,12 +8,15 @@
 #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
@@ -47,7 +50,8 @@ typedef enum {
   GSOCK_INVSOCK,
   GSOCK_NOHOST,
   GSOCK_INVPORT,
-  GSOCK_TRYAGAIN,
+  GSOCK_WOULDBLOCK,
+  GSOCK_TIMEOUT,
   GSOCK_MEMERR
 } GSocketError;
 
@@ -230,7 +234,11 @@ void GSocket_DoEvent(unsigned long evt_id);
 
 #ifdef __cplusplus
 };
+#endif /* __cplusplus */
+
+
 #endif
+    /* wxUSE_SOCKETS */
 
 #endif
- /* __GSOCKET_H */
   /* __GSOCKET_H */