]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Visual Studio build problems when ESI, Delay Pools and SSL support are not enabled
authorserassio <>
Sun, 20 Jan 2008 21:47:54 +0000 (21:47 +0000)
committerserassio <>
Sun, 20 Jan 2008 21:47:54 +0000 (21:47 +0000)
src/ACLCertificate.cc
src/DelayId.cc
src/ESI.cc
src/ESIAssign.cc
src/ESIContext.cc
src/ESIInclude.cc
src/ESISequence.cc
src/ssl_support.cc

index cb9a8935616a093ede63826f864bb8ca08fcc77f..3aea6dfe3d2320ecb100eabb650f910ae73e204b 100644 (file)
@@ -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
  */
 
 #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 */
index 85e2fea3d9f08d25c9cf262bee90d90248772cca..d42aeac0ee0eb3f6b63ba44605e1db32863e76c4 100644 (file)
@@ -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 <robertc@squid-cache.org>
 
 #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 */
index 6bfbd70732c0b441913d38725f050b7ab1999750..780ad1aff3331e5e169897c082a7e5031ced2ae2 100644 (file)
@@ -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
  */
 
 #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 */
index dbf04abd46e638372e090bf7c82389b69208d723..56e2a70f558658b12d74dd6e44e876748b25897a 100644 (file)
@@ -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
  */
 
 #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 */
index 8bd35a5dfe7a54aae6528e42e250479a1a4612be..bdf4f7538f2eb7852e1431d742f599cd642a6b26 100644 (file)
@@ -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
  */
 
 #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 */
index e31baa0d42cf27085b4beb441596952f3fdf8de0..653baa3eb32101545b83537a9be8c4fc10543ba0 100644 (file)
@@ -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
  */
 
 #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 */
index 3f2222827b6d0faf0e8671eebfd5f2b2d1bed306..2db892c6f0ef8aebfe31d9e3b02ccf66aed86978 100644 (file)
@@ -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
  */
 
 #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 */
index 3267df06a50177366a0e697781774c7383aaa606..dd7baffeed4c0e292729db00c06524491715d12e 100644 (file)
@@ -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
  */
 
 #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 */