autoconf
[Top][All Lists]
Advanced

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

Re: uint64_t fails with C++


From: Ben Pfaff
Subject: Re: uint64_t fails with C++
Date: Wed, 07 Dec 2011 13:42:52 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Mike Frysinger <address@hidden> writes:

> On Wednesday 07 December 2011 14:10:27 Bob Friesenhahn wrote:
>> On Wed, 7 Dec 2011, Werner LEMBERG wrote:
>> >> C++ compilers do not get these definition from stdint.h unless
>> >> __STDC_LIMIT_MACROS is defined, the macros are in C99 and later, but
>> >> were not in the C++ standard of the day (I don't know if they're in
>> >> later C++ standards), so aren't defined for C++ compilers by
>> >> default.
>> > 
>> > I still don't understand the details of the autoconf problem (and I
>> > still think that something is fishy), but defining this macro works
>> > just fine :-)
>> 
>> Clearly, depending on an implementation-dependent macro is not
>> suitable for portable software.
>
> i thought __STDC_LIMIT_MACROS was part of the spec and thus not 
> "implementation dependent" ?

That's correct, __STDC_LIMIT_MACROS is mentioned in a pair of
footnotes in C99, both of which say "C++ implementations should
define these macros only when __STDC_LIMIT_MACROS is defined
before <stdint.h> is included."
-- 
Ben Pfaff 
http://benpfaff.org



reply via email to

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