Does the following (untested) patch fix things for you?

2005-11-14  Paul Eggert  <[EMAIL PROTECTED]>

        * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
        (uintmax_t) [defined uintmax_t]: Do not declare.
        This works around a problem if intmax_t.m4 and/or uintmax_t.m4
        are also used.  Problem reported by Mark D. Baushke.

--- stdint_.h.~1.7.~    2005-05-23 03:22:39.000000000 -0700
+++ stdint_.h   2005-11-14 16:44:56.000000000 -0800
@@ -133,11 +133,19 @@ typedef unsigned long uintptr_t;
 /* 7.18.1.5. Greatest-width integer types */
 
 #ifdef _STDINT_H_HAVE_INT64
+# ifndef intmax_t
 typedef int64_t  intmax_t;
+# endif
+# ifndef uintmax_t
 typedef uint64_t uintmax_t;
+# endif
 #else
+# ifndef intmax_t
 typedef int32_t  intmax_t;
+# endif
+# ifndef uintmax_t
 typedef uint32_t uintmax_t;
+# endif
 #endif
 
 /* 7.18.2. Limits of specified-width integer types */


_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to