Don't make system headers depend on config.h

While building on an 32 bit intel platform, compilation of
abipkgdiff.cc failed because  fts.h wouldn't compile with
the macro _FILE_OFFSET_BITS set to 64.  That macro is set by config.h!

The idea of this patch is to make config.h have an effect only on
libabigail's own header files, not on system header files.

	* tools/abipkgdiff.cc: Include config.h after system headers and
	before libabigail's headers.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2017-11-08 15:23:10 +01:00
parent 8c51a89525
commit 778530eb0d

View File

@ -56,9 +56,6 @@
/// 4/ the reports are then emitted to standard output, always in the same
/// order.
// For package configuration macros.
#include "config.h"
#include <iostream>
#include <string>
#include <cstring>
@ -73,6 +70,8 @@
#include <elf.h>
#include <elfutils/libdw.h>
// For package configuration macros.
#include "config.h"
#include "abg-workers.h"
#include "abg-config.h"
#include "abg-tools-utils.h"