[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uint64_t fails with C++
From: |
Eric Blake |
Subject: |
Re: uint64_t fails with C++ |
Date: |
Wed, 07 Dec 2011 14:16:42 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
On 12/07/2011 11:08 AM, Werner LEMBERG wrote:
>
>>> #if defined UINT64_MAX || defined uint64_t
>>> typedef uint64_t TA_ULongLong;
>>> #else
>>> # error "No unsigned 64bit wide data type found."
>>> #endif
>>
>> stdint.h will not define UINT64_MAX if __cplusplus is defined unless
>> __STDC_LIMIT_MACROS is defined before you include it.
>
> Thanks. However, this still doesn't explain why autoconf (using g++!)
> says that uint64_t exists: __STDC_LIMIT_MACROS is not used in any part
> of autoconf.
I think that has been covered...
> PS: If using __STDC_LIMIT_MACROS is the `official' way to handle
> uint64 I suggest to update the autoconf documentation accordingly.
Yes, we definitely need to improve this. Would you mind submitting a
patch, based on what we have learned in this thread?
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: uint64_t fails with C++, (continued)
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Mike Frysinger, 2011/12/07
- Re: uint64_t fails with C++, Nick Bowler, 2011/12/07
- Re: uint64_t fails with C++, Mike Frysinger, 2011/12/07
- Re: uint64_t fails with C++, Nick Bowler, 2011/12/07
- Re: uint64_t fails with C++, Paul Eggert, 2011/12/07
- Re: uint64_t fails with C++, Bob Friesenhahn, 2011/12/07
- Re: uint64_t fails with C++, Ben Pfaff, 2011/12/07
- Re: uint64_t fails with C++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++,
Eric Blake <=
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
uint64_t fails with C++, Werner LEMBERG, 2011/12/07
uint64_t fails with C++, Werner LEMBERG, 2011/12/07
Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07