summaryrefslogtreecommitdiffstats
path: root/libdwfl
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-04-20 15:55:47 +0200
committerMark Wielaard <mark@klomp.org>2017-05-02 13:07:28 +0200
commitc73a00d82bbb7196c517f61cdf14c09b2b16a668 (patch)
tree24cee57d746d82fae3cc18672c145e36ac00c727 /libdwfl
parentab293bfbc76a0fa5461bcbdb105332a9f1d85892 (diff)
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 'libdwfl')
-rw-r--r--libdwfl/ChangeLog4
-rw-r--r--libdwfl/libdwfl.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 9de28778..b9be1bce 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,5 +1,9 @@
2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
+ * libdwfl.h: Use __const_attribute__.
+
+2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
+
* elf-from-memory.c: Explicitly cast phnum to size_t.
2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index aea8b993..a0c1d357 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -385,7 +385,7 @@ extern int dwfl_linux_proc_find_elf (Dwfl_Module *mod, void **userdata,
/* Standard argument parsing for using a standard callback set. */
struct argp;
-extern const struct argp *dwfl_standard_argp (void) __attribute__ ((const));
+extern const struct argp *dwfl_standard_argp (void) __const_attribute__;
/*** Relocation of addresses from Dwfl ***/