]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make the way version.h is included standard (#654)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 6 Jun 2020 07:19:01 +0000 (07:19 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 8 Jun 2020 17:24:19 +0000 (17:24 +0000)
include guards for version.h are in squid.h
Change this to use the standard approach

include/squid.h
include/version.h

index 7d122f2cadea9d4f04f0baeaa75e39c89fcd34c8..953bbd08c1b451169ea2106aceae4074415cbe4d 100644 (file)
 #define SQUID_CONFIG_H
 
 #include "autoconf.h"       /* For GNU autoconf variables */
-
-#if !defined(HAVE_SQUID)
-/* sub-packages define their own version details */
 #include "version.h"
 
-#endif
-
 /* default values for listen ports. Usually specified in squid.conf really */
 #define CACHE_HTTP_PORT 3128
 #define CACHE_ICP_PORT 3130
index 9fc71133d879ce48e35c311a242ba051c2033fab..a40c17c8fd2410b9b6a3260a218157e0dc0ce9ca 100644 (file)
@@ -6,6 +6,9 @@
  * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+#ifndef SQUID_VERSION_H
+#define SQUID_VERSION_H
+
 #ifndef SQUID_RELEASE_TIME
 #define SQUID_RELEASE_TIME squid_curtime
 #endif
@@ -22,3 +25,4 @@
 #define APP_FULLNAME  PACKAGE "/" VERSION
 #endif
 
+#endif /* SQUID_VERSION_H */