[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uint64_t usage
From: |
Mike Miller |
Subject: |
Re: uint64_t usage |
Date: |
Tue, 6 Oct 2015 14:49:29 -0400 |
On Tue, Oct 6, 2015 at 14:37:24 -0400, Mike Miller wrote:
> On Tue, Oct 6, 2015 at 11:04:37 -0700, Rik wrote:
>> After including "stdint.h", can I always rely on uint64_t being available
>> to the compiler? Or do I need to write complicated code with #ifdefs to
>> use either uint32_t or uint64_t?
>
> No, it is not guaranteed. My reading of gnulib's stdint.h (which we
> are using) is that it will define the macros GL_INT64_T and
> GL_UINT64_T if the corresponding 64-bit integer types are available.
But now I see that there are other places in Octave that seem to use
u?int64_t unconditionally, so maybe this doesn't matter in practice.
--
mike