aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/stdint.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-01-19 22:02:06 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-01-19 22:02:06 +0000
commit2e287a6327b2ee5abe462758fb27597f9ee95534 (patch)
treeeeadbec2f2940cc6a3706d0bc0d74b9daa9b62c0 /newlib/libc/include/stdint.h
parentddc0c0d3f5eb224c2c8a71957864528161b672de (diff)
downloadnewlib-2e287a6327b2ee5abe462758fb27597f9ee95534.zip
newlib-2e287a6327b2ee5abe462758fb27597f9ee95534.tar.gz
newlib-2e287a6327b2ee5abe462758fb27597f9ee95534.tar.bz2
2009-01-19 Neal H. Walfield <neal@gnu.org>
* libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C) [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL. * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX, __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l, not ll.
Diffstat (limited to 'newlib/libc/include/stdint.h')
-rw-r--r--newlib/libc/include/stdint.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
index 671400b..d47b222 100644
--- a/newlib/libc/include/stdint.h
+++ b/newlib/libc/include/stdint.h
@@ -457,22 +457,22 @@ typedef unsigned long uintptr_t;
#endif
#if __int64_t_defined
-#if __have_longlong64
-#define INT64_C(x) x##LL
-#define UINT64_C(x) x##ULL
-#else
+#if __have_long64
#define INT64_C(x) x##L
#define UINT64_C(x) x##UL
+#else
+#define INT64_C(x) x##LL
+#define UINT64_C(x) x##ULL
#endif
#endif
/** Macros for greatest-width integer constant expression */
-#if __have_longlong64
-#define INTMAX_C(x) x##LL
-#define UINTMAX_C(x) x##ULL
-#else
+#if __have_long64
#define INTMAX_C(x) x##L
#define UINTMAX_C(x) x##UL
+#else
+#define INTMAX_C(x) x##LL
+#define UINTMAX_C(x) x##ULL
#endif