X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6d6a882d4d8ea0d7ef706a45fa92b96f34c94c7..f644bc116bbe46d6ab609a44c05835dc4d87ba02:/include/wx/msw/gsockmsw.h diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index ea9a40bd1b..859ed60513 100644 --- a/include/wx/msw/gsockmsw.h +++ b/include/wx/msw/gsockmsw.h @@ -1,8 +1,10 @@ /* ------------------------------------------------------------------------- - * Project: GSocket (Generic Socket) for WX - * Name: gsockmsw.h - * Purpose: GSocket MSW header - * CVSID: $Id$ + * Project: GSocket (Generic Socket) for WX + * Name: gsockmsw.h + * Copyright: (c) Guilhem Lavaux + * Licence: wxWindows Licence + * Purpose: GSocket MSW header + * CVSID: $Id$ * ------------------------------------------------------------------------- */ @@ -23,12 +25,14 @@ #include "wx/msw/wrapwin.h" -#ifndef TRUE -#define TRUE 1 +#if defined(__CYGWIN__) + //CYGWIN gives annoying warning about runtime stuff if we don't do this +# define USE_SYS_TYPES_FD_SET +# include #endif -#ifndef FALSE -#define FALSE 0 +#if defined(__WXWINCE__) || defined(__CYGWIN__) +#include #endif class GSocketGUIFunctionsTableConcrete: public GSocketGUIFunctionsTable @@ -58,7 +62,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 +96,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 */