bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] Re: size_max


From: Simon Josefsson
Subject: [bug-gnulib] Re: size_max
Date: Fri, 21 Jan 2005 23:20:13 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]