autoconf
[Top][All Lists]
Advanced

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

Re: uint64_t fails with C++


From: Peter O'Gorman
Subject: Re: uint64_t fails with C++
Date: Wed, 07 Dec 2011 15:04:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14

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




reply via email to

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