From: Vadim Zeitlin Date: Sun, 23 Nov 2008 13:32:48 +0000 (+0000) Subject: remove last traces of __GSOCKET_STANDALONE__ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ebf94940c4004c7ad5aa75c9be6d54da3a8aa728 remove last traces of __GSOCKET_STANDALONE__ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index e9db270e6b..77a818bf6d 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -12,24 +12,24 @@ * ------------------------------------------------------------------------- */ -#if defined(__WATCOMC__) #include "wx/wxprec.h" -#include -#include -#endif -#ifndef __GSOCKET_STANDALONE__ -#include "wx/defs.h" +#if wxUSE_SOCKETS + +#include "wx/gsocket.h" + +#include "wx/private/fd.h" +#include "wx/private/socket.h" #include "wx/private/gsocketiohandler.h" -#endif #if defined(__VISAGECPP__) #define BSD_SELECT /* use Berkeley Sockets select */ #endif -#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) - -#include "wx/private/socket.h" +#if defined(__WATCOMC__) +#include +#include +#endif #include #include @@ -177,20 +177,9 @@ int _System soclose(int); # define GSOCKET_MSG_NOSIGNAL 0 #endif /* MSG_NOSIGNAL */ -#ifndef __GSOCKET_STANDALONE__ -# include "wx/unix/gsockunx.h" -# include "wx/unix/private.h" -# include "wx/gsocket.h" #if wxUSE_THREADS && (defined(HAVE_GETHOSTBYNAME) || defined(HAVE_GETSERVBYNAME)) # include "wx/thread.h" #endif -#else -# include "gsockunx.h" -# include "gsocket.h" -# ifndef WXUNUSED -# define WXUNUSED(x) -# endif -#endif /* __GSOCKET_STANDALONE__ */ #if defined(HAVE_GETHOSTBYNAME) static struct hostent * deepCopyHostent(struct hostent *h, @@ -2079,4 +2068,4 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf) return GSOCK_NOERROR; } #endif /* !defined(__VISAGECPP__) */ -#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */ +#endif /* wxUSE_SOCKETS */