[PATCH 01/14] Move definition of __bounded, etc.

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


These defines are only part of the glibc <sys/cdefs.h>.  Move it to the
front to separate it from the FreeBSD specific parts.  This makes it
easier to compare the file with the upstream version.

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

	* libc/include/sys/cdefs.h (__bounded): Move definition.
	(__unbounded): Likewise.
	(__ptrvalue): Likewise.
---
 newlib/libc/include/sys/cdefs.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index 253258a..395f122 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -91,6 +91,12 @@
 #define __attribute_format_strfmon__(a,b)
 #define __flexarr      [0]
 
+#ifndef __BOUNDED_POINTERS__
+# define __bounded      /* nothing */
+# define __unbounded    /* nothing */
+# define __ptrvalue     /* nothing */
+#endif
+
 #ifdef  __cplusplus
 # define __BEGIN_DECLS  extern "C" {
 # define __END_DECLS    }
@@ -99,12 +105,6 @@
 # define __END_DECLS
 #endif
 
-#ifndef __BOUNDED_POINTERS__
-# define __bounded      /* nothing */
-# define __unbounded    /* nothing */
-# define __ptrvalue     /* nothing */
-#endif
-
 /*
  * Given the pointer x to the member m of the struct s, return
  * a pointer to the containing structure.  When using GCC, we first
-- 
1.7.7



More information about the Newlib mailing list