mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
2005-10-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/stdint.h: Include <sys/types.h> and incorporate Ralf's change below.
This commit is contained in:
parent
14491fd0e0
commit
8afb8202d4
@ -1,3 +1,8 @@
|
|||||||
|
2005-10-03 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/sys/linux/include/stdint.h: Include <sys/types.h> and
|
||||||
|
incorporate Ralf's change below.
|
||||||
|
|
||||||
2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libc/include/stdint.h:
|
* libc/include/stdint.h:
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
#ifndef _STDINT_H
|
#ifndef _STDINT_H
|
||||||
#define _STDINT_H
|
#define _STDINT_H
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -122,14 +124,25 @@ typedef uint64_t uint_least32_t;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __have_longlong64
|
/* Greatest-width integer types */
|
||||||
typedef signed long long intmax_t;
|
/* Modern GCCs provide __INTMAX_TYPE__ */
|
||||||
typedef unsigned long long uintmax_t;
|
#if defined(__INTMAX_TYPE__)
|
||||||
|
typedef __INTMAX_TYPE__ intmax_t;
|
||||||
|
#elif __have_longlong64
|
||||||
|
typedef signed long long intmax_t;
|
||||||
#else
|
#else
|
||||||
typedef signed long intmax_t;
|
typedef signed long intmax_t;
|
||||||
typedef unsigned long uintmax_t;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Modern GCCs provide __UINTMAX_TYPE__ */
|
||||||
|
#if defined(__UINTMAX_TYPE__)
|
||||||
|
typedef __UINTMAX_TYPE__ uintmax_t;
|
||||||
|
#elif __have_longlong64
|
||||||
|
typedef unsigned long long uintmax_t;
|
||||||
|
#else
|
||||||
|
typedef unsigned long uintmax_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Limits of Specified-Width Integer Types */
|
/* Limits of Specified-Width Integer Types */
|
||||||
|
|
||||||
#if __int8_t_defined
|
#if __int8_t_defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user