Re: 64 bit
Re: 64 bit
- Subject: Re: 64 bit
- From: Alastair Houghton <email@hidden>
- Date: Thu, 13 Dec 2007 17:43:48 +0000
On 13 Dec 2007, at 17:33, Peter O'Gorman wrote:
Note however that stdint.h is from C99, and is not part of C++. This
distinction may be important for portability reasons.
For example, stdint.h on sgi irix6.5 has:
#ifndef __c99
#error This header file is to be used only for c99 mode compilations
#else
Of course the c++ compiler there does not define __c99.
There are similar problems on Tru64 unix, and of course older
systems do
not even have a stdint.h.
inttypes.h is more common on older systems and will still give int64_t
etc., and should work with c++.
Of course this all assumes that portability is indeed a goal :-)
Sure, and it all stems from the fact that there isn't a portable 64-
bit integer type in C++.
(FWIW, I wasn't paying a great deal of attention and hadn't actually
noticed that he was using C++ rather than C. Also, on the
<inttypes.h> point, I seem to recall reading somewhere that
<inttypes.h> is supposed to be more widely deployed in practice than
<stdint.h>, so maybe using the former is better for portability.)
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >64 bit (From: email@hidden) |
| >Re: 64 bit (From: Nick Zitzmann <email@hidden>) |
| >Re: 64 bit (From: Perry Winkel <email@hidden>) |
| >Re: 64 bit (From: Alastair Houghton <email@hidden>) |
| >Re: 64 bit (From: "Sean McBride" <email@hidden>) |
| >Re: 64 bit (From: Peter O'Gorman <email@hidden>) |