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 /test/unit | |
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 'test/unit')
-rw-r--r-- | test/unit/bcache_utils_t.c | 2 | ||||
-rw-r--r-- | test/unit/io_engine_t.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/test/unit/bcache_utils_t.c b/test/unit/bcache_utils_t.c index 2e0832096..d022c5115 100644 --- a/test/unit/bcache_utils_t.c +++ b/test/unit/bcache_utils_t.c @@ -12,8 +12,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define _GNU_SOURCE - #include "units.h" #include "lib/device/bcache.h" diff --git a/test/unit/io_engine_t.c b/test/unit/io_engine_t.c index bac9c3862..44e93e025 100644 --- a/test/unit/io_engine_t.c +++ b/test/unit/io_engine_t.c @@ -12,8 +12,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define _GNU_SOURCE - #include "units.h" #include "lib/device/bcache.h" |