]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: fix Visual Studio build problems when ESI, Delay Pools and SSL support...
authorserassio <>
Sun, 10 Feb 2008 17:43:09 +0000 (17:43 +0000)
committerserassio <>
Sun, 10 Feb 2008 17:43:09 +0000 (17:43 +0000)
MS Visual Studio Projects are monolithic, so we need some #if/#ifdef to exclude
the not needed code at build time.

src/ACLCertificate.cc
src/DelayId.cc
src/ESI.cc
src/ESIAssign.cc
src/ESIContext.cc
src/ESIInclude.cc
src/ESISequence.cc
src/dns_internal.cc
src/ssl_support.cc

index cb9a8935616a093ede63826f864bb8ca08fcc77f..9e0ba65b236de4f404c3a1d02c68c07f69620805 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.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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..94541d4e98c7cb2637e735defce4d178bd823eb9 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.2.1 2008/02/10 10:43:09 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 Visual Studio 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..bbefa3232d3c25dd9387943540aa4b236ef6954e 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.2.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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..ce69369229bf613d1af429a53fc4193dcfbea060 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.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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..e9aabcacaae4098e3f4bf0e2fa67f3316e067f9d 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.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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..7e6bb5c529e72e27c4bbdd493bbfef473b01ef95 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.2.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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..466f6e96b108751958c90b17882ff3222a736e09 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.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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 f927147477e65a3a4b283436ab8561c747c87c6f..771f1e5619b90218686797411cc39dfd3d320c87 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: dns_internal.cc,v 1.101 2007/06/23 21:08:39 hno Exp $
+ * $Id: dns_internal.cc,v 1.101.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * DEBUG: section 78    DNS lookups; interacts with lib/rfc1035.c
  * AUTHOR: Duane Wessels
@@ -51,7 +51,7 @@
 #include <resolv.h>
 #endif
 
-/* MS VisualStudio Projects are monolithic, so we need the following
+/* MS Visual Studio Projects are monolithic, so we need the following
    #ifndef to exclude the internal DNS code from compile process when
    using external DNS process.
  */
index 3267df06a50177366a0e697781774c7383aaa606..462f04e4bdaa03f26a35e0192b805d75789b1149 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.4.1 2008/02/10 10:43:09 serassio Exp $
  *
  * AUTHOR: Benno Rice
  * DEBUG: section 83    SSL accelerator support
  */
 
 #include "squid.h"
+
+/* MS Visual Studio 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 */