diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-03 18:14:26 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-14 15:09:13 +0100 |
commit | 0b19387dae782b33bb341e58ab3c7ff804ca4f14 (patch) | |
tree | a3914adc8ac8141e4380fbe6b20efc7307067030 /lib/misc | |
parent | 3c377643339be97940554323909d51b12c933f9e (diff) | |
download | lvm2-0b19387dae782b33bb341e58ab3c7ff804ca4f14.tar.gz |
headers: use configure.h as 1st. header
Ensure configure.h is always 1st. included header.
Maybe we could eventually introduce gcc -include option, but for now
this better uses dependency tracking.
Also move _REENTRANT and _GNU_SOURCE into configure.h so it
doesn't need to be present in various source files.
This ensures consistent compilation of headers like stdio.h since
it may produce different declaration.
Diffstat (limited to 'lib/misc')
-rw-r--r-- | lib/misc/lib.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/misc/lib.h b/lib/misc/lib.h index f7baf9dba..c14f437a0 100644 --- a/lib/misc/lib.h +++ b/lib/misc/lib.h @@ -19,11 +19,6 @@ #ifndef _LVM_LIB_H #define _LVM_LIB_H -#include "configure.h" - -#define _REENTRANT -#define _GNU_SOURCE - /* * Symbol export control macros * @@ -78,10 +73,10 @@ #endif -#include "lib/misc/intl.h" #include "device_mapper/all.h" -#include "lib/misc/util.h" #include "base/memory/zalloc.h" +#include "lib/misc/intl.h" +#include "lib/misc/util.h" #ifdef DM # include "libdm/misc/dm-logging.h" |