OSDN Git Service

do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windo...
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Feb 2009 00:02:19 +0000 (00:02 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 10 Feb 2009 00:02:19 +0000 (00:02 -0000)
include/elf.h

index 0a58e0e..0129f1e 100644 (file)
 #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 */