Resolve clash between stdint.m4 and uintmax_t.m4.
authorBruno Haible <bruno@clisp.org>
Tue, 27 Jun 2006 13:15:26 +0000 (13:15 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 27 Jun 2006 13:15:26 +0000 (13:15 +0000)
lib/ChangeLog
lib/stdint_.h

index 9870838..6aac72e 100644 (file)
@@ -1,3 +1,7 @@
+2006-06-27  Bruno Haible  <bruno@clisp.org>
+
+       * stdlib_.h (intmax_t, uintmax_t): Undefine before typedef.
+
 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * base64.c (B64): Use _ as the formal parameter, not x, to avoid
index 3afdfae..9e0faab 100644 (file)
@@ -261,6 +261,8 @@ typedef unsigned long uintptr_t;
    public header files. */
 
 #if !@HAVE_INTMAX_T@
+/* Remove possible redundant definition from gnulib's config.h first.  */
+# undef intmax_t
 # ifdef _STDINT_H_HAVE_INT64
 typedef int64_t  intmax_t;
 # else
@@ -268,6 +270,8 @@ typedef int32_t  intmax_t;
 # endif
 #endif
 #if !@HAVE_UINTMAX_T@
+/* Remove possible redundant definition from gnulib's config.h first.  */
+# undef uintmax_t
 # ifdef _STDINT_H_HAVE_UINT64
 typedef uint64_t uintmax_t;
 # else