[PATCH 11/14] FreeBSD update of __FBSDID, etc.

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Apr 17 13:16:00 GMT 2013


newlib/ChangeLog
2013-04-17  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* libc/include/sys/cdefs.h (__FBSDID): Move define.
	(__RCSID): New define.
	(__RCSID_SOURCE): Likewise.
	(__SCCSID): Likewise.
	(__COPYRIGHT): Likewise.
---
 newlib/libc/include/sys/cdefs.h |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index 72b2093..0ef9cc7 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -48,8 +48,6 @@
 #include <stddef.h>
 #include <stdint.h>
 
-#define __FBSDID(x) /* nothing */
-
 #define __PMT(args)	args
 #define __DOTS    	, ...
 #define __THROW
@@ -513,4 +511,24 @@
 #endif	/* __ELF__ */
 #endif	/* __GNUC__ || __INTEL_COMPILER */
 
+#ifndef	__FBSDID
+#define	__FBSDID(s)	struct __hack
+#endif
+
+#ifndef	__RCSID
+#define	__RCSID(s)	struct __hack
+#endif
+
+#ifndef	__RCSID_SOURCE
+#define	__RCSID_SOURCE(s)	struct __hack
+#endif
+
+#ifndef	__SCCSID
+#define	__SCCSID(s)	struct __hack
+#endif
+
+#ifndef	__COPYRIGHT
+#define	__COPYRIGHT(s)	struct __hack
+#endif
+
 #endif /* !_SYS_CDEFS_H_ */
-- 
1.7.7



More information about the Newlib mailing list