From 0ce742cf092c9244f27957e308c16f3c2631042d Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Wed, 15 Sep 1999 02:21:15 +0000 Subject: [PATCH] Checking for wxUSE_SOCKETS and __GSOCKET_STANDALONE__ should be right, now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gsocket.h | 6 ++++-- include/wx/msw/gsockmsw.h | 8 ++++++++ src/msw/gsocket.c | 12 ++++++++---- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index ecc65f37f6..10eb21f79e 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -8,9 +8,11 @@ #ifndef __GSOCKET_H #define __GSOCKET_H +#ifndef __GSOCKET_STANDALONE__ #include "wx/setup.h" +#endif -#if wxUSE_SOCKETS +#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) #include #include @@ -247,6 +249,6 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf); #endif /* __cplusplus */ -#endif /* wxUSE_SOCKETS */ +#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */ #endif /* __GSOCKET_H */ diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index 38105d5fa2..6cd735b092 100644 --- a/include/wx/msw/gsockmsw.h +++ b/include/wx/msw/gsockmsw.h @@ -9,6 +9,12 @@ #ifndef __GSOCK_MSW_H #define __GSOCK_MSW_H +#ifndef __GSOCKET_STANDALONE__ +#include "wx/setup.h" +#endif + +#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) + #ifndef __GSOCKET_STANDALONE__ #include "wx/gsocket.h" #else @@ -84,4 +90,6 @@ GSocketError _GAddress_Init_UNIX(GAddress *address); } #endif +#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */ + #endif /* __GSOCK_MSW_H */ diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index 315a7e46c3..34dcaa09f2 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -8,8 +8,14 @@ #ifndef __GSOCKET_STANDALONE__ - #include "wx/setup.h" +#endif + +#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) + + +#ifndef __GSOCKET_STANDALONE__ + #include "wx/msw/gsockmsw.h" #include "wx/gsocket.h" @@ -29,8 +35,6 @@ #endif /* __GSOCKET_STANDALONE__ */ -#if defined(__GSOCKET_STANDALONE__) || defined(wxUSE_SOCKETS) - #include #include #include @@ -1377,7 +1381,7 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf) } -#endif /* defined(__GSOCKET_STANDALONE__) || defined(wxUSE_SOCKETS) */ +#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */ -- 2.45.2