From 093cec72e7f7793d55fa1547cadb6655104feb5e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 May 2019 11:43:26 +0200 Subject: src: replace IPTABLES_VERSION by PACKAGE_VERSION The IPTABLES_VERSION C macro replicates the PACKAGE_VERSION C macro (both have the same definition, "@PACKAGE_VERSION@"). Since IPTABLES_VERSION, being located in internal.h, is not exposed to downstream users in any way, it can just be replaced by PACKAGE_VERSION, which saves a configure-time file substitution. This goes towards eliminating unnecessary rebuilds after rerunning ./configure. Signed-off-by: Jan Engelhardt Signed-off-by: Florian Westphal --- include/iptables/internal.h | 11 +++++++++++ include/iptables/internal.h.in | 13 ------------- 2 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 include/iptables/internal.h delete mode 100644 include/iptables/internal.h.in (limited to 'include/iptables') diff --git a/include/iptables/internal.h b/include/iptables/internal.h new file mode 100644 index 00000000..86ba074a --- /dev/null +++ b/include/iptables/internal.h @@ -0,0 +1,11 @@ +#ifndef IPTABLES_INTERNAL_H +#define IPTABLES_INTERNAL_H 1 + +/** + * Program's own name and version. + */ +extern const char *program_name, *program_version; + +extern int line; + +#endif /* IPTABLES_INTERNAL_H */ diff --git a/include/iptables/internal.h.in b/include/iptables/internal.h.in deleted file mode 100644 index 8568e581..00000000 --- a/include/iptables/internal.h.in +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef IPTABLES_INTERNAL_H -#define IPTABLES_INTERNAL_H 1 - -#define IPTABLES_VERSION "@PACKAGE_VERSION@" - -/** - * Program's own name and version. - */ -extern const char *program_name, *program_version; - -extern int line; - -#endif /* IPTABLES_INTERNAL_H */ -- cgit v1.2.3