[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdint_.h vs intmax_t & uintmax_t
From: |
Paul Eggert |
Subject: |
Re: stdint_.h vs intmax_t & uintmax_t |
Date: |
Tue, 15 Nov 2005 11:14:02 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
"Mark D. Baushke" <address@hidden> writes:
> I suspect it would be more portable to use this:
>
> #ifndef SIZE_MAX
> # define SIZE_MAX ((size_t)-1)
> #endif
Yes, that's true. There are several other deficiencies like that in
stdint_.h.
I wonder why stdint_.h diverges so much from glibc's stdint.h? In
many cases stdint_.h has silly mistakes (e.g., not parenthesizing a
macro right-hand side) that are not in glibc.