"Derek R. Price" <[EMAIL PROTECTED]> writes:

> It sounds reasonable to leave size_max in for those who want it, but is
> it really necessary to make stdint depend on it?  All that extra work by
> configure sounds like overkill too, when stdint_.h has already included
> <stddef.h> and so the current code from stdint_.h suffices:
>
> #ifndef SIZE_MAX /* SIZE_MAX may also be defined in config.h. */
> # define SIZE_MAX ((size_t)~(size_t)0)
> #endif

Sorry, I must be missing something then.  I thought you wanted
size_max because you wanted SIZE_MAX to be usable in #if, as it is
with real stdint.h implementations.

If you merely want a C constant that is not necessarily usable in #if,
then "#define SIZE_MAX ((size_t) -1)" will do and is commonly used in
many packages.


Reply via email to