[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: size_max
From: |
Stepan Kasal |
Subject: |
Re: [bug-gnulib] Re: size_max |
Date: |
Sat, 22 Jan 2005 16:40:56 +0100 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Fri, Jan 21, 2005 at 11:20:13PM +0100, Simon Josefsson wrote:
> Paul Eggert <address@hidden> writes:
>
> >> +#ifndef GNULIB_SIZE_MAX_H
> >> +#define GNULIB_SIZE_MAX_H
> >> +
> >> +# include <limits.h>
> >> +# if HAVE_STDINT_H
> >> +# include <stdint.h>
> >> +# endif
> >> +
> >> +#endif /* GNULIB_SIZE_MAX_H */
> >
> > You can systematically replace GNULIB_SIZE_MAX_H with SIZE_MAX; one
> > less symbol to worry about. (Or is that too cute? :-)
>
> Except for the #define, I suppose. POSIX says SIZE_MAX should be
> usable in #if directives, so I think the neat trick will work.
but without the define, you'd probably disable an optimisation on the
preprocessing. I think GNULIB_SIZE_MAX_H is fine.
Stepan