diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-12-03 16:04:41 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-12-03 16:04:41 +0000 |
commit | 9bd3bcc6422473bc072d392d3e9545186b7f2211 (patch) | |
tree | d9156b2000bc1b5440e4c3df1b2dc47c17bec13e /newlib/libc/include/sys/cdefs.h | |
parent | 9262c055370b4d22420b3a08cdff91d24abc67dd (diff) | |
download | cygnal-9bd3bcc6422473bc072d392d3e9545186b7f2211.tar.gz cygnal-9bd3bcc6422473bc072d392d3e9545186b7f2211.tar.bz2 cygnal-9bd3bcc6422473bc072d392d3e9545186b7f2211.zip |
* libc/include/machine/_default_types.h: Move extern "C" after
header includes. Include <sys/features.h> for
__GNUC_PREREQ__().
(__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if
available.
(__intptr_t): Define.
(__uintptr_t): Likewise.
* libc/include/stdint.h: Include <machine/_default_types.h>
instead of <_ansi.h>.
(u?int.*_t): Define via __u?int.*_t provided by
<machine/_default_types.h>.
(u?int_fast.*_t): Define via GCC provided
__U?INT_FAST.*_TYPE__ if available.
(U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__
if available.
(U?INT.*_C): Define via GCC provided __U?INT.*_C if available.
* libc/include/sys/cdefs.h: Use <machine/_default_types.h>
instead of <stdint.h>.
* libc/sys/rtems/sys/cpuset.h: Likewise.
* libc/sys/rtems/machine/_types.h: Include <stdint.h> for
FreeBSD compatibility.
Diffstat (limited to 'newlib/libc/include/sys/cdefs.h')
-rw-r--r-- | newlib/libc/include/sys/cdefs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h index 4a7339c79..a5e613c63 100644 --- a/newlib/libc/include/sys/cdefs.h +++ b/newlib/libc/include/sys/cdefs.h @@ -40,9 +40,9 @@ #ifndef _SYS_CDEFS_H_ #define _SYS_CDEFS_H_ +#include <machine/_default_types.h> #include <sys/features.h> #include <stddef.h> -#include <stdint.h> #define __PMT(args) args #define __DOTS , ... @@ -572,15 +572,15 @@ #endif #ifndef __DECONST -#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var)) +#define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var)) #endif #ifndef __DEVOLATILE -#define __DEVOLATILE(type, var) ((type)(uintptr_t)(volatile void *)(var)) +#define __DEVOLATILE(type, var) ((type)(__uintptr_t)(volatile void *)(var)) #endif #ifndef __DEQUALIFY -#define __DEQUALIFY(type, var) ((type)(uintptr_t)(const volatile void *)(var)) +#define __DEQUALIFY(type, var) ((type)(__uintptr_t)(const volatile void *)(var)) #endif /*- |