diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-04-20 15:55:47 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-05-02 13:07:28 +0200 |
commit | c73a00d82bbb7196c517f61cdf14c09b2b16a668 (patch) | |
tree | 24cee57d746d82fae3cc18672c145e36ac00c727 /libebl | |
parent | ab293bfbc76a0fa5461bcbdb105332a9f1d85892 (diff) | |
download | elfutils-c73a00d82bbb7196c517f61cdf14c09b2b16a668.tar.gz |
Make __attribute__ conditional in all installed headers
__attribute__ is a GNU extension. If we want to link against the
libraries using a different compiler, it needs to be disabled. It was
already disabled in libdw.h, and this patch extends this to the other
headers. We move the defines to libelf.h as that is included in all
the others.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 4 | ||||
-rw-r--r-- | libebl/libebl.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 719d08d0..506915ba 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,7 @@ +2017-04-20 Ulf Hermann <ulf.hermann@qt.io> + + * libebl.h: Use __pure_attribute__. + 2017-02-15 Ulf Hermann <ulf.hermann@qt.io> * eblmachineflagname.c: Include system.h. diff --git a/libebl/libebl.h b/libebl/libebl.h index c8e01fe9..87896e4a 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -73,13 +73,13 @@ extern void ebl_closebackend (Ebl *bh); /* Information about the descriptor. */ /* Get ELF machine. */ -extern int ebl_get_elfmachine (Ebl *ebl) __attribute__ ((__pure__)); +extern int ebl_get_elfmachine (Ebl *ebl) __pure_attribute__; /* Get ELF class. */ -extern int ebl_get_elfclass (Ebl *ebl) __attribute__ ((__pure__)); +extern int ebl_get_elfclass (Ebl *ebl) __pure_attribute__; /* Get ELF data encoding. */ -extern int ebl_get_elfdata (Ebl *ebl) __attribute__ ((__pure__)); +extern int ebl_get_elfdata (Ebl *ebl) __pure_attribute__; /* Function to call the callback functions including default ELF |