[FFmpeg-devel] [PATCH] don't include intypes.h directly

Måns Rullgård mans
Sat Nov 10 22:00:28 CET 2007


Rich Felker <dalias at aerifal.cx> writes:

> On Sat, Nov 10, 2007 at 05:59:29PM +0000, M?ns Rullg?rd wrote:
>> > Except some platforms don't have stuff in that header but in another 
>> > (like inttypes.h).
>> 
>> Those platforms should be fixed or ignored.
>
> Both inttypes.h and stdint.h are in the C99 standard, but ffmpeg aims
> (afaik) to use a minimal subset of C99 that's more compatible with
> historical systems. inttypes.h exists on almost all historical systems
> and is probably also part of a pre-C99 POSIX or XOPEN standard. I've
> never heard of a system that has stdint.h but lacks inttypes.h.

I don't remember all the details, but I once had some trouble relating
to those headers while writing code that had to compile on both DEC
OSF/1 4.0 and Solaris 7.  IIRC, OSF/1 had only stdint.h while Solaris
had only inttypes.h.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list