On 4/21/1999 1:49 AM, Goetz Babin-Ebell enlightened me with the following:
>Perhaps we should clear sizes of data types.
>
>Perhaps something like:
>
>typedef char int8;
>typedef unsigned char uint8;
>typedef short int16;
>typedef unsigned short uint16;
>typedef long int32;
>typedef unsigned long uint32;
If I might make a humble contribution...
I was going to attach two headers (ConditionalMacros.h and MacTypes.h)
from Apple's Universal Headers since I have found them invaluable, and
usually include them in all my projects, including ones that I am trying
to port (like OpenSSL and Crypto++). It does a great job of determining
data sizes on a variety of platforms. Unfortunately, I have to check
licensing issues regarding redistribution because they does not fall
under Apple's "Darwin" public source license. (I think it will be OK, but
I'd rather not get fired over something stupid, you know?)
In the interim, I am including OSHeaders.h from the QuickTime Streaming
Server source which handles four platforms, and defines the same types
defined in MacTypes.h.
OSHeaders.h