[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uint64_t fails with C++
From: |
Nick Bowler |
Subject: |
Re: uint64_t fails with C++ |
Date: |
Wed, 7 Dec 2011 16:18:26 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 2011-12-07 15:31 -0500, Mike Frysinger wrote:
> 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" ?
Sort-of. It is included non-normatively in the C specification as a
recommendation to C++ implementations. C++98 didn't include these
macros at all, and thus had nothing to say on the subject.
Nevertheless, the latest revision of the C++ specification includes
these macros, and explicitly states that you do *not* need to define
__STDC_LIMIT_MACROS to get them.
Cheers,
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
- uint64_t fails with C++, Werner LEMBERG, 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++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Bob Friesenhahn, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Peter Rosin, 2011/12/07
- 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 <=
- 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, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07