Mercurial > hg > octave-nkf > gnulib-hg
changeset 9402:b785f4c49eb3
Add check that intmax_t and uintmax_t have the same size.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 23 Oct 2007 00:12:46 +0200 |
parents | 8e698de353f7 |
children | 839a910b1b8d |
files | ChangeLog lib/stdint.in.h |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-22 Bruno Haible <bruno@clisp.org> + + * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same + size. + 2007-10-22 Eric Blake <ebb9@byu.net> Tweak x*printf documentation.
--- a/lib/stdint.in.h +++ b/lib/stdint.in.h @@ -247,6 +247,11 @@ # define uintmax_t unsigned long int #endif +/* Verify that intmax_t and uintmax_t have the same size. Too much code + breaks if this is not the case. If this check fails, the reason is likely + to be found in the autoconf macros. */ +typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) - 1]; + /* 7.18.2. Limits of specified-width integer types */ #if ! defined __cplusplus || defined __STDC_LIMIT_MACROS