mirror of git://sourceware.org/git/glibc.git
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.
This commit is contained in:
parent
59803e81f9
commit
9538f6b95a
|
|
@ -19,10 +19,6 @@
|
||||||
#ifndef _ELF_H
|
#ifndef _ELF_H
|
||||||
#define _ELF_H 1
|
#define _ELF_H 1
|
||||||
|
|
||||||
#include <features.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
|
||||||
|
|
||||||
/* Standard ELF types. */
|
/* Standard ELF types. */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
@ -4105,6 +4101,4 @@ enum
|
||||||
#define R_ARC_TLS_LE_S9 0x4a
|
#define R_ARC_TLS_LE_S9 0x4a
|
||||||
#define R_ARC_TLS_LE_32 0x4b
|
#define R_ARC_TLS_LE_32 0x4b
|
||||||
|
|
||||||
__END_DECLS
|
|
||||||
|
|
||||||
#endif /* elf.h */
|
#endif /* elf.h */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue