bug-gnulib
[Top][All Lists]
Advanced

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

Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT


From: Paul Eggert
Subject: Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT
Date: Sun, 21 Oct 2007 23:52:32 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Bruno Haible <address@hidden> writes:

> intmax_t size = 8
> uintmax_t size = 4
> int64_t size = 8
> uint64_t size = 8

This looks like a different set of problems than what was observed on
HP-UX 10.20.  On your host, 64-bit signed preprocessor numbers work,
but the unsigned ones don't.  Can you please try this code:

#if ! (18446744073709551615ULL <= -1u)
  error in preprocessor;
#endif

and tell me what diagnostics (if any) your compiler generates?

Perhaps the simplest workaround is to change the above test to something like 
this:

#if ! (18446744073709551614ULL <= 18446744073709551615ULL)
  error in preprocessor;
#endif

This is a more-generous test; if your compiler passes it, then it's probably
good enough for Autoconf and gnulib.




reply via email to

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