From 9bd3bcc6422473bc072d392d3e9545186b7f2211 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 3 Dec 2013 16:04:41 +0000 Subject: * libc/include/machine/_default_types.h: Move extern "C" after header includes. Include 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 instead of <_ansi.h>. (u?int.*_t): Define via __u?int.*_t provided by . (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 instead of . * libc/sys/rtems/sys/cpuset.h: Likewise. * libc/sys/rtems/machine/_types.h: Include for FreeBSD compatibility. --- newlib/libc/include/sys/cdefs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'newlib/libc/include/sys/cdefs.h') 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 #include #include -#include #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 /*- -- cgit v1.2.3