2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Prefer long over int for int32_t. Use __have_long32 to set up int32_t. * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx" (Sync with stdint.h).
This commit is contained in:
parent
fd01d14ab1
commit
843e635aaa
|
@ -1,3 +1,10 @@
|
||||||
|
2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libc/include/stdint.h: Prefer long over int for int32_t.
|
||||||
|
Use __have_long32 to set up int32_t.
|
||||||
|
* libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
|
||||||
|
(Sync with stdint.h).
|
||||||
|
|
||||||
2005-12-14 Corinna Vinschen <corinna@vinschen.de>
|
2005-12-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
|
* libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
#define SCNxFAST16 __SCN16(x)
|
#define SCNxFAST16 __SCN16(x)
|
||||||
|
|
||||||
/* 32-bit types */
|
/* 32-bit types */
|
||||||
#if defined(__have_long32)
|
#if __have_long32
|
||||||
#define __PRI32(x) __STRINGIFY(l##x)
|
#define __PRI32(x) __STRINGIFY(l##x)
|
||||||
#define __SCN32(x) __STRINGIFY(l##x)
|
#define __SCN32(x) __STRINGIFY(l##x)
|
||||||
#else
|
#else
|
||||||
|
@ -163,10 +163,10 @@
|
||||||
|
|
||||||
|
|
||||||
/* 64-bit types */
|
/* 64-bit types */
|
||||||
#if defined(__have_longlong64)
|
#if __have_longlong64
|
||||||
#define __PRI64(x) __STRINGIFY(ll##x)
|
#define __PRI64(x) __STRINGIFY(ll##x)
|
||||||
#define __SCN64(x) __STRINGIFY(ll##x)
|
#define __SCN64(x) __STRINGIFY(ll##x)
|
||||||
#elif defined(__have_long64)
|
#elif __have_long64
|
||||||
#define __PRI64(x) __STRINGIFY(l##x)
|
#define __PRI64(x) __STRINGIFY(l##x)
|
||||||
#define __SCN64(x) __STRINGIFY(l##x)
|
#define __SCN64(x) __STRINGIFY(l##x)
|
||||||
#else
|
#else
|
||||||
|
@ -217,10 +217,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* max-bit types */
|
/* max-bit types */
|
||||||
#if defined(__have_longlong64)
|
#if __have_longlong64
|
||||||
#define __PRIMAX(x) __STRINGIFY(ll##x)
|
#define __PRIMAX(x) __STRINGIFY(ll##x)
|
||||||
#define __SCNMAX(x) __STRINGIFY(ll##x)
|
#define __SCNMAX(x) __STRINGIFY(ll##x)
|
||||||
#elif defined(__have_long64)
|
#elif __have_long64
|
||||||
#define __PRIMAX(x) __STRINGIFY(l##x)
|
#define __PRIMAX(x) __STRINGIFY(l##x)
|
||||||
#define __SCNMAX(x) __STRINGIFY(l##x)
|
#define __SCNMAX(x) __STRINGIFY(l##x)
|
||||||
#else
|
#else
|
||||||
|
@ -242,10 +242,10 @@
|
||||||
#define SCNxMAX __SCNMAX(x)
|
#define SCNxMAX __SCNMAX(x)
|
||||||
|
|
||||||
/* ptr types */
|
/* ptr types */
|
||||||
#if defined(__have_longlong64)
|
#if __have_longlong64
|
||||||
#define __PRIPTR(x) __STRINGIFY(ll##x)
|
#define __PRIPTR(x) __STRINGIFY(ll##x)
|
||||||
#define __SCNPTR(x) __STRINGIFY(ll##x)
|
#define __SCNPTR(x) __STRINGIFY(ll##x)
|
||||||
#elif defined(__have_long64)
|
#elif __have_long64
|
||||||
#define __PRIPTR(x) __STRINGIFY(l##x)
|
#define __PRIPTR(x) __STRINGIFY(l##x)
|
||||||
#define __SCNPTR(x) __STRINGIFY(l##x)
|
#define __SCNPTR(x) __STRINGIFY(l##x)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -79,14 +79,14 @@ typedef uint16_t uint_least8_t;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __STDINT_EXP(INT_MAX) == 0x7fffffffL
|
#if __have_long32
|
||||||
typedef signed int int32_t;
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
#define __int32_t_defined 1
|
|
||||||
#elif __STDINT_EXP(LONG_MAX) == 0x7fffffffL
|
|
||||||
typedef signed long int32_t;
|
typedef signed long int32_t;
|
||||||
typedef unsigned long uint32_t;
|
typedef unsigned long uint32_t;
|
||||||
#define __int32_t_defined 1
|
#define __int32_t_defined 1
|
||||||
|
#elif __STDINT_EXP(INT_MAX) == 0x7fffffffL
|
||||||
|
typedef signed int int32_t;
|
||||||
|
typedef unsigned int uint32_t;
|
||||||
|
#define __int32_t_defined 1
|
||||||
#elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL
|
#elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL
|
||||||
typedef signed short int32_t;
|
typedef signed short int32_t;
|
||||||
typedef unsigned short uint32_t;
|
typedef unsigned short uint32_t;
|
||||||
|
|
Loading…
Reference in New Issue