]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/gsockmsw.h
winundef.h serves for other compilators too with STL turned on.
[wxWidgets.git] / include / wx / msw / gsockmsw.h
index ea9a40bd1b610021be20da1ffcb3756bb2fcf961..346a23c4c1335be8b84b483f1dcacaba493de408 100644 (file)
 
 #include "wx/msw/wrapwin.h"
 
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
+#if defined(__WXWINCE__)
+#include <winsock.h>
 #endif
 
 class GSocketGUIFunctionsTableConcrete: public GSocketGUIFunctionsTable
@@ -58,7 +54,7 @@ public:
   GAddress *GetPeer();
   GSocketError SetServer();
   GSocket *WaitConnection();
-  int SetReusable();
+  bool SetReusable();
   GSocketError Connect(GSocketStream stream);
   GSocketError SetNonOriented();
   int Read(char *buffer, int size);
@@ -92,11 +88,11 @@ public:
   GSocketError m_error;
 
   /* Attributes */
-  int m_non_blocking;
-  int m_server;
-  int m_stream;
-  int m_establishing;
-  int m_reusable;
+  bool m_non_blocking;
+  bool m_server;
+  bool m_stream;
+  bool m_establishing;
+  bool m_reusable;
   struct timeval m_timeout;
 
   /* Callbacks */