[Scummvm-devel] <inttypes.h>

David Given dg at cowlark.com
Thu Sep 16 15:22:23 CEST 2004


Marcus Comstedt wrote:
> What's the deal with the dependency on <inttypes.h> in
> graphics/animation.h?  All integer types we need (and use) are defined
> in common/scummsys.h, are they not?  This include (and the alternate
> set of typedefs for "MSC") seems completely redundant...

Well, <inttypes.h> is C99. Non-C99 platforms tend to define the types in 
<sys/types.h> instead. It *is* preferable to use the standard names --- 
int8_t, u_int8_t, etc --- rather than rolling your own, so I suspect the 
question should be: why isn't the rest of ScummVM using the standard types?

What non-C99 platforms does ScummVM run on? Most environments seem to be 
gcc-based. Is Visual C++ C99-compatible?

-- 
[insert interesting .sig here]





More information about the Scummvm-devel mailing list