aboutsummaryrefslogtreecommitdiff
path: root/elf/elf.h
diff options
context:
space:
mode:
authorÉrico Rolim <ericonr@disroot.org>2020-10-27 11:17:41 -0300
committerFlorian Weimer <fweimer@redhat.com>2020-10-28 11:29:16 +0100
commit9538f6b95a3be228edc078ce58258f0574142e0c (patch)
tree01b255b91a80eae43e5dda8c5a35073f08568c92 /elf/elf.h
parent59803e81f96b479c17f583b31eac44b57591a1bf (diff)
downloadglibc-9538f6b95a3be228edc078ce58258f0574142e0c.zip
glibc-9538f6b95a3be228edc078ce58258f0574142e0c.tar.gz
glibc-9538f6b95a3be228edc078ce58258f0574142e0c.tar.bz2
Make elf.h header self contained.
The elf/elf.h header is shared, verbatim, by the elfutils project. However, elfutils can be used on systems with libcs other than glibc, making the presence of __BEGIN_DECLS, __END_DECLS and <features.h> in the file something that downstream distros may have to add patches for. Furthermore, this file doesn't declare anything with language linkage, so `extern "C" {}` blocks aren't necessary; it also doesn't have any conditional definitions based on feature test macros, making inclusion of features.h unnecessary.
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/elf/elf.h b/elf/elf.h
index ff9f1da..6439c1a 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -19,10 +19,6 @@
#ifndef _ELF_H
#define _ELF_H 1
-#include <features.h>
-
-__BEGIN_DECLS
-
/* Standard ELF types. */
#include <stdint.h>
@@ -4105,6 +4101,4 @@ enum
#define R_ARC_TLS_LE_S9 0x4a
#define R_ARC_TLS_LE_32 0x4b
-__END_DECLS
-
#endif /* elf.h */