summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-06-23 15:33:19 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-06-23 15:33:19 +0000
commitb7176bd70ce1f29f11b509d99396a6309c1ea581 (patch)
tree65589c32f068f25525338211774ad275875bb019 /cpukit/libcsupport/include
parent PR 1101/rtems (diff)
downloadrtems-b7176bd70ce1f29f11b509d99396a6309c1ea581.tar.bz2
2006-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/cdefs.h: Partial update from freebsd.
Diffstat (limited to 'cpukit/libcsupport/include')
-rw-r--r--cpukit/libcsupport/include/rtems/cdefs.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/cpukit/libcsupport/include/rtems/cdefs.h b/cpukit/libcsupport/include/rtems/cdefs.h
index df4690f3e6..8febd93ff6 100644
--- a/cpukit/libcsupport/include/rtems/cdefs.h
+++ b/cpukit/libcsupport/include/rtems/cdefs.h
@@ -17,10 +17,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -38,6 +34,10 @@
* SUCH DAMAGE.
*
* @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+ * $FreeBSD: src/sys/sys/cdefs.h,v 1.92 2006/03/13 00:49:28 deischen Exp $
+ */
+
+/*
* $Id$
*/
@@ -46,7 +46,7 @@
#if defined(__cplusplus)
#define __BEGIN_DECLS extern "C" {
-#define __END_DECLS };
+#define __END_DECLS }
#else
#define __BEGIN_DECLS
#define __END_DECLS
@@ -55,9 +55,11 @@
/*
* The __CONCAT macro is used to concatenate parts of symbol names, e.g.
* with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
- * The __CONCAT macro is a bit tricky -- make sure you don't put spaces
- * in between its arguments. __CONCAT can also concatenate double-quoted
- * strings produced by the __STRING macro, but this only works with ANSI C.
+ * The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
+ * mode -- there must be no spaces between its arguments, and for nested
+ * __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
+ * concatenate double-quoted strings produced by the __STRING macro, but
+ * this only works with ANSI C.
*
* __XSTRING is like __STRING, but it expands any macros in its argument
* first. It is only available with ANSI C.