[Insight-developers] Fixed width integer types, itkIntTypes, and portable 64-bit integer

Sean McBride sean at rogue-research.com
Mon Dec 7 12:10:12 EST 2009


On 12/7/09 12:03 PM, Bradley Lowekamp said:

>>  itksysFundamentalType_U?Int(8|16|32|64)
>> 
>> However, these were not meant for direct use.  They are meant as
>> try-compile results with out-of-the-way names that can be typedef'd
>> as needed.
>
>I had a concern about apple's universal builds and the size of long
>being check as a try compile. Fortunately it appear that it uses a
>couple of compile time checks to determine the sizes, which should be
>more robust, then falls back to the try-compile approach.

Checking the size of 'long' is indeed problematic with Universal
Binaries, and should not be done.  But Mac OS X's headers have a decent
stdint.h so it should not be necessary to fall back to
itksysFundamentalType_U?Int(8|16|32|64) on Mac OS.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list