summaryrefslogtreecommitdiff
path: root/include/elf.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-10 00:02:19 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-10 00:02:19 +0000
commite0da861a29f864f1646603ae62e336fda093477c (patch)
tree2c3c96ce11e89dc2f87ab104851978b4a8ba3570 /include/elf.h
parente0c8160a383b3ab3037c2e99c61c076ac94c9255 (diff)
do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...)
Diffstat (limited to 'include/elf.h')
-rw-r--r--include/elf.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/elf.h b/include/elf.h
index 0a58e0eec..0129f1e05 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. */
@@ -3061,6 +3062,8 @@ typedef Elf32_Addr Elf32_Conflict;
/* Keep this the last entry. */
#define R_XTENSA_NUM 50
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* elf.h */