From e0da861a29f864f1646603ae62e336fda093477c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 10 Feb 2009 00:02:19 +0000 Subject: do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...) --- include/elf.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/elf.h') 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 - -__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 */ -- cgit v1.2.3