From: serassio <> Date: Sun, 20 Jan 2008 21:47:54 +0000 (+0000) Subject: Fix Visual Studio build problems when ESI, Delay Pools and SSL support are not enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be42e0672fc693a4e855466e3deff361c71fe73d;p=thirdparty%2Fsquid.git Fix Visual Studio build problems when ESI, Delay Pools and SSL support are not enabled --- diff --git a/src/ACLCertificate.cc b/src/ACLCertificate.cc index cb9a893561..3aea6dfe3d 100644 --- a/src/ACLCertificate.cc +++ b/src/ACLCertificate.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLCertificate.cc,v 1.2 2003/03/04 01:40:25 robertc Exp $ + * $Id: ACLCertificate.cc,v 1.2.6.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -35,6 +35,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the SSL code from compile process when not needed. + */ +#if USE_SSL + #include "ACLCertificate.h" #include "ACLChecklist.h" #include "ACLCertificateData.h" @@ -60,3 +66,5 @@ ACLCertificateStrategy::Instance() } ACLCertificateStrategy ACLCertificateStrategy::Instance_; + +#endif /* USE_SSL */ diff --git a/src/DelayId.cc b/src/DelayId.cc index 85e2fea3d9..d42aeac0ee 100644 --- a/src/DelayId.cc +++ b/src/DelayId.cc @@ -1,6 +1,6 @@ /* - * $Id: DelayId.cc,v 1.23 2007/09/21 11:41:52 amosjeffries Exp $ + * $Id: DelayId.cc,v 1.23.4.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 77 Delay Pools * AUTHOR: Robert Collins @@ -39,9 +39,11 @@ #include "config.h" -#if !DELAY_POOLS -#error DELAY_POOLS not enabled -#endif +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the delay pools code from compile process when not needed. + */ +#if DELAY_POOLS + #include "squid.h" #include "DelayId.h" #include "client_side_request.h" @@ -187,3 +189,5 @@ DelayId::delayRead(DeferredRead const &aRead) compositeId->delayRead(aRead); } + +#endif /* DELAY_POOLS */ diff --git a/src/ESI.cc b/src/ESI.cc index 6bfbd70732..780ad1aff3 100644 --- a/src/ESI.cc +++ b/src/ESI.cc @@ -1,6 +1,6 @@ /* - * $Id: ESI.cc,v 1.26 2007/08/27 12:50:42 hno Exp $ + * $Id: ESI.cc,v 1.26.4.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -35,6 +35,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the ESI code from compile process when not needed. + */ +#if (USE_SQUID_ESI == 1) + #include "ESI.h" #include "clientStream.h" #include "client_side_request.h" @@ -2459,4 +2465,4 @@ esiEnableProcessing (HttpReply *rep) return rv; } - +#endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ESIAssign.cc b/src/ESIAssign.cc index dbf04abd46..56e2a70f55 100644 --- a/src/ESIAssign.cc +++ b/src/ESIAssign.cc @@ -1,6 +1,6 @@ /* - * $Id: ESIAssign.cc,v 1.6 2007/05/29 13:31:37 amosjeffries Exp $ + * $Id: ESIAssign.cc,v 1.6.6.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -34,6 +34,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the ESI code from compile process when not needed. + */ +#if (USE_SQUID_ESI == 1) + #include "ESIAssign.h" #include "ESIContext.h" #include "ESISequence.h" @@ -190,3 +196,5 @@ ESIVariableExpression::eval (ESIVarState &state, char const *subref, char const /* XXX: Implement evaluation of the expression */ ESISegment::ListAppend (state.getOutput(), expression.buf(), expression.size()); } + +#endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ESIContext.cc b/src/ESIContext.cc index 8bd35a5dfe..bdf4f7538f 100644 --- a/src/ESIContext.cc +++ b/src/ESIContext.cc @@ -1,6 +1,6 @@ /* - * $Id: ESIContext.cc,v 1.3 2007/04/28 22:26:37 hno Exp $ + * $Id: ESIContext.cc,v 1.3.6.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -34,6 +34,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the ESI code from compile process when not needed. + */ +#if (USE_SQUID_ESI == 1) + #include "ESIContext.h" #include "Store.h" #include "client_side_request.h" @@ -106,3 +112,5 @@ ESIContext::setErrorMessage(char const *anError) if (!errormessage) errormessage = xstrdup (anError); } + +#endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ESIInclude.cc b/src/ESIInclude.cc index e31baa0d42..653baa3eb3 100644 --- a/src/ESIInclude.cc +++ b/src/ESIInclude.cc @@ -1,6 +1,6 @@ /* - * $Id: ESIInclude.cc,v 1.14 2007/08/27 12:50:42 hno Exp $ + * $Id: ESIInclude.cc,v 1.14.4.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -35,6 +35,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the ESI code from compile process when not needed. + */ +#if (USE_SQUID_ESI == 1) + #include "ESIInclude.h" #include "ESIVarState.h" #include "client_side_request.h" @@ -591,3 +597,4 @@ ESIInclude::subRequestDone (ESIStreamContext::Pointer stream, bool success) } } +#endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ESISequence.cc b/src/ESISequence.cc index 3f2222827b..2db892c6f0 100644 --- a/src/ESISequence.cc +++ b/src/ESISequence.cc @@ -1,5 +1,5 @@ /* - * $Id: ESISequence.cc,v 1.6 2007/04/28 22:26:37 hno Exp $ + * $Id: ESISequence.cc,v 1.6.6.1 2008/01/20 14:47:54 serassio Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -34,6 +34,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the ESI code from compile process when not needed. + */ +#if (USE_SQUID_ESI == 1) + #include "ESISequence.h" #include "ESILiteral.h" #include "ESIAttempt.h" @@ -392,3 +398,4 @@ esiSequence::makeUsable(esiTreeParentPtr newParent, ESIVarState &newVarState) co return result; } +#endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ssl_support.cc b/src/ssl_support.cc index 3267df06a5..dd7baffeed 100644 --- a/src/ssl_support.cc +++ b/src/ssl_support.cc @@ -1,6 +1,6 @@ /* - * $Id: ssl_support.cc,v 1.35 2007/04/28 22:26:37 hno Exp $ + * $Id: ssl_support.cc,v 1.35.6.1 2008/01/20 14:47:54 serassio Exp $ * * AUTHOR: Benno Rice * DEBUG: section 83 SSL accelerator support @@ -34,6 +34,12 @@ */ #include "squid.h" + +/* MS VisualStudio Projects are monolithic, so we need the following + * #if to exclude the SSL code from compile process when not needed. + */ +#if USE_SSL + #include "fde.h" static int @@ -1058,3 +1064,5 @@ sslGetUserCertificateChainPEM(SSL *ssl) return str; } + +#endif /* USE_SSL */