]> sourceware.org Git - newlib-cygwin.git/commitdiff
2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 3 Oct 2005 17:02:48 +0000 (17:02 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 3 Oct 2005 17:02:48 +0000 (17:02 +0000)
        * libc/include/stdint.h:
        Use __INTMAX_TYPE__ to derive intmax_t.
        Use __UINTMAX_TYPE__ to derive uintmax_t.
        Fix minor typo.

newlib/ChangeLog
newlib/libc/include/stdint.h

index 0ed1b83c5b4003e7d10bf1f44c41358bde7efc33..e6eafdb64b4a7656d259ebe5f3340a8d8ed5bff0 100644 (file)
@@ -1,3 +1,10 @@
+2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
+
+       * libc/include/stdint.h: 
+       Use __INTMAX_TYPE__ to derive intmax_t.
+       Use __UINTMAX_TYPE__ to derive uintmax_t.
+       Fix minor typo.
+
 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
 
        * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly 
index f9e8d837fb8038d9d437480899c4d6129ea5c97e..a95c149a288646ca1a3ce1c9d0130380b9b2b0e7 100644 (file)
@@ -148,16 +148,27 @@ typedef uint64_t          uint_least32_t;
 #endif
 #endif
 
-#if __have_longlong64
-typedef signed long long intmax_t;
-typedef unsigned long long uintmax_t;
+/* Greatest-width integer types */
+/* Modern GCCs provide __INTMAX_TYPE__ */
+#if defined(__INTMAX_TYPE__)
+  typedef __INTMAX_TYPE__ intmax_t;
+#elif __have_longlong64
+  typedef signed long long intmax_t;
 #else
-typedef signed long intmax_t;
-typedef unsigned long uintmax_t;
+  typedef signed long intmax_t;
 #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
+
 /*
- * GCC doesn't provide an propriate macro for [u]intptr_t
+ * GCC doesn't provide an appropriate macro for [u]intptr_t
  * For now, use __PTRDIFF_TYPE__
  */
 #if defined(__PTRDIFF_TYPE__)
This page took 0.044282 seconds and 5 git commands to generate.