]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Wrap Delay Pools module headers
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Apr 2008 11:56:42 +0000 (23:56 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Apr 2008 11:56:42 +0000 (23:56 +1200)
- prevents all compiling and testing of the headers when the component is disabled.

src/DelayId.h
src/DelayTagged.h
src/DelayUser.h
src/DelayVector.h

index 682c81564eb44abda0aa03ce7caf8d49920ef5f2..8a0a860b41c297653c95d63d460a28bb6c5f772e 100644 (file)
@@ -35,6 +35,8 @@
 #ifndef SQUID_DELAYID_H
 #define SQUID_DELAYID_H
 
+#if DELAY_POOLS
+
 class ClientHttpRequest;
 #include "DelayIdComposite.h"
 
@@ -64,4 +66,5 @@ private:
     bool markedAsNoDelay;
 };
 
+#endif /* DELAY_POOLS */
 #endif /* SQUID_DELAYID_H */
index f26bc836950fcc5f1e300a63b73b8270aa46e6e4..76d629b3db849b25c48b75fdf3c270ca53b4aa52 100644 (file)
  *
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
+#ifndef DELAYTAGGED_H
+#define DELAYTAGGED_H
 
 #include "config.h"
 
-#ifndef DELAYTAGGED_H
-#define DELAYTAGGED_H
+#if DELAY_POOLS
 
 #include "squid.h"
 #include "authenticate.h"
@@ -107,4 +108,5 @@ private:
     Splay<DelayTaggedBucket::Pointer> buckets;
 };
 
+#endif /* DELAY_POOLS */
 #endif /* DELAYTAGGED_H */
index 449bdf7a203679a272b23a099fc764259939c061..781ac66e2cd6266aa724dadde87ab99562e50c17 100644 (file)
  *
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
+#ifndef DELAYUSER_H
+#define DELAYUSER_H
 
 #include "config.h"
 
-#ifndef DELAYUSER_H
-#define DELAYUSER_H
+#if DELAY_POOLS
 
 #include "squid.h"
 #include "authenticate.h"
@@ -106,4 +107,5 @@ private:
     Splay<DelayUserBucket::Pointer> buckets;
 };
 
+#endif /* DELAY_POOLS */
 #endif /* DELAYUSER_H */
index bc7cc848a2a632a9a6bf23f867e0bc31a9c8889f..8bd7dd418c75a9de5c82c7cc23c01ceb5894aae6 100644 (file)
  *
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
-
 #ifndef SQUID_DELAYVECTOR_H
 #define SQUID_DELAYVECTOR_H
 
+#include "config.h"
+
+#if DELAY_POOLS
+
 #include "CompositePoolNode.h"
 
 /// \ingroup DelayPoolsAPI
@@ -85,4 +88,5 @@ private:
     typedef Vector<CompositePoolNode::Pointer>::const_iterator const_iterator;
 };
 
+#endif /* DELAY_POOLS */
 #endif /* SQUID_DELAYVECTOR_H */