summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-12-21 19:11:49 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-12-21 19:19:50 +0100
commit18aa541ca270d70899ab7ec6095075b70a21fb09 (patch)
tree1cdc9265e6365b6649dac3b7ba9c9eb77bd3a329 /base
parenta7034fa4200d63207daa45290150159dd02cf01f (diff)
downloadlvm2-18aa541ca270d70899ab7ec6095075b70a21fb09.tar.gz
configure: avoid repeative inclusion of configure.h
Since configure.h is a generated header and it's missing traditional ifdefs preambule - it can be included & parsed multiple times. Normally compiler is fine when defines have same value and there is no warning - yet we don't need to parse this several times and by adding -include directive we can ensure every file in the package is rightly compile with configure.h as the first header file.
Diffstat (limited to 'base')
-rw-r--r--base/data-struct/radix-tree.h2
-rw-r--r--base/memory/zalloc.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/base/data-struct/radix-tree.h b/base/data-struct/radix-tree.h
index 685b8280f..5d4d04c63 100644
--- a/base/data-struct/radix-tree.h
+++ b/base/data-struct/radix-tree.h
@@ -13,8 +13,6 @@
#ifndef BASE_DATA_STRUCT_RADIX_TREE_H
#define BASE_DATA_STRUCT_RADIX_TREE_H
-#include "configure.h"
-
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/base/memory/zalloc.h b/base/memory/zalloc.h
index 069c59999..2509bf44e 100644
--- a/base/memory/zalloc.h
+++ b/base/memory/zalloc.h
@@ -13,7 +13,6 @@
#ifndef BASE_MEMORY_ZALLOC_H
#define BASE_MEMORY_ZALLOC_H
-#include "configure.h"
#include <stdlib.h>
//----------------------------------------------------------------