]> git.saurik.com Git - wxWidgets.git/commitdiff
remove last traces of __GSOCKET_STANDALONE__
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Nov 2008 13:32:48 +0000 (13:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Nov 2008 13:32:48 +0000 (13:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index e9db270e6b58175d3d2d60eb03e2f1ecd575d79c..77a818bf6daded65c58ee32e9ac02eb46ff2c2e3 100644 (file)
  * -------------------------------------------------------------------------
  */
 
-#if defined(__WATCOMC__)
 #include "wx/wxprec.h"
-#include <errno.h>
-#include <nerrno.h>
-#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 <errno.h>
+#include <nerrno.h>
+#endif
 
 #include <assert.h>
 #include <sys/types.h>
@@ -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 */