[git commit 0_9_30] do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...)
Mike Frysinger
vapier at gentoo.org
Sat Oct 10 16:44:02 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=b86dbcfb0c285a5346bd64ac58b9f728fe083648
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/elf.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/include/elf.h b/include/elf.h
index 9f00970..478f7d7 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -20,9 +20,10 @@
#ifndef _ELF_H
#define _ELF_H 1
-#include <features.h>
-
-__BEGIN_DECLS
+/* Avoid features.h here for portability. This stuff matches sys/cdefs.h. */
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Standard ELF types. */
@@ -3045,6 +3046,8 @@ typedef Elf32_Addr Elf32_Conflict;
/* Keep this the last entry. */
#define R_XTENSA_NUM 50
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* elf.h */
--
1.6.3.3
More information about the uClibc-cvs
mailing list