OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c8160
)
do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windo...
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 10 Feb 2009 00:02:19 +0000
(
00:02
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 10 Feb 2009 00:02:19 +0000
(
00:02
-0000)
include/elf.h
patch
|
blob
|
history
diff --git
a/include/elf.h
b/include/elf.h
index
0a58e0e
..
0129f1e
100644
(file)
--- 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 */