diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-12-03 20:04:41 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-12-03 20:04:41 +0400 |
commit | 9bd3bcc6422473bc072d392d3e9545186b7f2211 (patch) | |
tree | d9156b2000bc1b5440e4c3df1b2dc47c17bec13e /newlib/libc/sys/rtems | |
parent | 9262c055370b4d22420b3a08cdff91d24abc67dd (diff) |
* 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/sys/rtems')
-rw-r--r-- | newlib/libc/sys/rtems/machine/_types.h | 1 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/sys/cpuset.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/sys/rtems/machine/_types.h b/newlib/libc/sys/rtems/machine/_types.h index 1711c7ae8..e8b2bc7e6 100644 --- a/newlib/libc/sys/rtems/machine/_types.h +++ b/newlib/libc/sys/rtems/machine/_types.h @@ -9,6 +9,7 @@ #define _HAVE_SYSTYPES #include <machine/_default_types.h> +#include <stdint.h> /* For FreeBSD compatibility */ typedef __int32_t blksize_t; typedef __int32_t blkcnt_t; diff --git a/newlib/libc/sys/rtems/sys/cpuset.h b/newlib/libc/sys/rtems/sys/cpuset.h index 763e813e9..4231f0ed8 100644 --- a/newlib/libc/sys/rtems/sys/cpuset.h +++ b/newlib/libc/sys/rtems/sys/cpuset.h @@ -45,8 +45,8 @@ #ifndef _SYS_CPUSET_H_ #define _SYS_CPUSET_H_ +#include <machine/_default_types.h> #include <stddef.h> -#include <stdint.h> #ifdef __cplusplus extern "C" { @@ -58,7 +58,7 @@ extern "C" { #endif /* word in the cpu set */ -typedef uint32_t cpu_set_word_t; +typedef __uint32_t cpu_set_word_t; /* Number of bits per cpu_set_t element */ #define _NCPUBITS (sizeof(cpu_set_word_t) * 8) |