public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Make elf.h header self contained.
@ 2020-10-28 11:15 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-10-28 11:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9538f6b95a3be228edc078ce58258f0574142e0c
commit 9538f6b95a3be228edc078ce58258f0574142e0c
Author: Érico Rolim <ericonr@disroot.org>
Date: Tue Oct 27 11:17:41 2020 -0300
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.
Diff:
---
elf/elf.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/elf/elf.h b/elf/elf.h
index ff9f1dadd5..6439c1a4d5 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-28 11:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28 11:15 [glibc] Make elf.h header self contained Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).