Re: uint64_t fails with C++

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

 



On 12/07/2011 01:04 PM, Werner LEMBERG wrote:

It's nothing to do with autoconf really, configure correctly finds
uint64_t, your C program then checks for UINT64_MAX or a uint64_t
macro instead of #include<config.h>  and checking for HAVE_UINT64_T.

HAVE_UINT64_T is *not* defined in my<config.h>...

Sorry, my bad. It seems AC_TYPE_UINT64_T will define uint64_t in config.h if the system doesn't provide one, so you don't need to do any checking at all before using uint64_t, as long as you include config.h. I had assumed that it defined HAVE_UINT64_T.

If you do need the UINT64_MAX etc macros as well as the uint64_t type then you will have to define __STDC_LIMIT_MACROS.

Peter


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux