[PATCH 03/14] FreeBSD update of __BEGIN_DECLS and __END_DECLS

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 (__BEGIN_DECLS): Use verbatim copy of
	latest FreeBSD source.
	(__END_DECLS): Likewise.
---
 newlib/libc/include/sys/cdefs.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index f054084..fbcd024 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -97,12 +97,12 @@
 # define __ptrvalue     /* nothing */
 #endif
 
-#ifdef  __cplusplus
-# define __BEGIN_DECLS  extern "C" {
-# define __END_DECLS    }
+#if defined(__cplusplus)
+#define	__BEGIN_DECLS	extern "C" {
+#define	__END_DECLS	}
 #else
-# define __BEGIN_DECLS
-# define __END_DECLS
+#define	__BEGIN_DECLS
+#define	__END_DECLS
 #endif
 
 /*
-- 
1.7.7



More information about the Newlib mailing list