svn commit: trunk/uClibc/include
vapier at uclibc.org
vapier at uclibc.org
Tue Feb 10 00:02:21 UTC 2009
Author: vapier
Date: 2009-02-10 00:02:19 +0000 (Tue, 10 Feb 2009)
New Revision: 25286
Log:
do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...)
Modified:
trunk/uClibc/include/elf.h
Changeset:
Modified: trunk/uClibc/include/elf.h
===================================================================
--- trunk/uClibc/include/elf.h 2009-02-09 23:42:23 UTC (rev 25285)
+++ trunk/uClibc/include/elf.h 2009-02-10 00:02:19 UTC (rev 25286)
@@ -20,10 +20,11 @@
#ifndef _ELF_H
#define _ELF_H 1
-#include <features.h>
+/* Avoid features.h here for portability. This stuff matches sys/cdefs.h. */
+#ifdef __cplusplus
+extern "C" {
+#endif
-__BEGIN_DECLS
-
/* Standard ELF types. */
#include <stdint.h>
@@ -3061,6 +3062,8 @@
/* Keep this the last entry. */
#define R_XTENSA_NUM 50
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* elf.h */
More information about the uClibc-cvs
mailing list