* 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.
This commit is contained in:
Corinna Vinschen
2013-12-03 16:04:41 +00:00
parent 9262c05537
commit 9bd3bcc642
6 changed files with 269 additions and 156 deletions

View File

@ -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;

View File

@ -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)