diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-16 22:03:12 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-16 22:03:12 +0300 |
commit | 843e635aaa02f16f314688ba5dd8a5edc3929095 (patch) | |
tree | 0013fed0395e7ea9a0d33acb424fd5d1d32ee0c7 /newlib/libc/include/inttypes.h | |
parent | fd01d14ab1258e2601a94dc3734fa7505942391d (diff) |
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).
Diffstat (limited to 'newlib/libc/include/inttypes.h')
-rw-r--r-- | newlib/libc/include/inttypes.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/newlib/libc/include/inttypes.h b/newlib/libc/include/inttypes.h index 16e6348d3..0bcbd31c0 100644 --- a/newlib/libc/include/inttypes.h +++ b/newlib/libc/include/inttypes.h @@ -112,7 +112,7 @@ #define SCNxFAST16 __SCN16(x) /* 32-bit types */ -#if defined(__have_long32) +#if __have_long32 #define __PRI32(x) __STRINGIFY(l##x) #define __SCN32(x) __STRINGIFY(l##x) #else @@ -163,10 +163,10 @@ /* 64-bit types */ -#if defined(__have_longlong64) +#if __have_longlong64 #define __PRI64(x) __STRINGIFY(ll##x) #define __SCN64(x) __STRINGIFY(ll##x) -#elif defined(__have_long64) +#elif __have_long64 #define __PRI64(x) __STRINGIFY(l##x) #define __SCN64(x) __STRINGIFY(l##x) #else @@ -217,10 +217,10 @@ #endif /* max-bit types */ -#if defined(__have_longlong64) +#if __have_longlong64 #define __PRIMAX(x) __STRINGIFY(ll##x) #define __SCNMAX(x) __STRINGIFY(ll##x) -#elif defined(__have_long64) +#elif __have_long64 #define __PRIMAX(x) __STRINGIFY(l##x) #define __SCNMAX(x) __STRINGIFY(l##x) #else @@ -242,10 +242,10 @@ #define SCNxMAX __SCNMAX(x) /* ptr types */ -#if defined(__have_longlong64) +#if __have_longlong64 #define __PRIPTR(x) __STRINGIFY(ll##x) #define __SCNPTR(x) __STRINGIFY(ll##x) -#elif defined(__have_long64) +#elif __have_long64 #define __PRIPTR(x) __STRINGIFY(l##x) #define __SCNPTR(x) __STRINGIFY(l##x) #else |