[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SIZE_MAX
From: |
Eric Blake |
Subject: |
Re: SIZE_MAX |
Date: |
Thu, 21 May 2009 17:13:28 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Ben Pfaff <blp <at> cs.stanford.edu> writes:
> > +[/* Define as the maximum value of type 'size_t', if the system doesn't
define
> > + it. */
> > +#ifndef SIZE_MAX
> > +# undef SIZE_MAX
> > +#endif])
> > ])
>
> This logic looks wrong.
Taken out of context, yes, it looks wrong. Which is why Bruno also added this
comment, to explain things:
+ dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after
+ dnl <stdint.h>. Remember that the #undef in AH_VERBATIM gets replaced with
+ dnl #define by AC_DEFINE_UNQUOTED.
The patch is correct as-is.
--
Eric Blake