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

Måns Rullgård mans
Sat Nov 10 23:08:02 CET 2007


Dave Yeo <daveryeo at telus.net> writes:

> On 11/10/07 11:45 am, Rich Felker wrote:
>> 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.
>> 
>> Rich
>
> FYI the IBM OS/2 toolkit contains neither stdint.h or inttypes.h. The 
> toolkit claims to mostly meet these specifications.
> The American National Standards Institute C Standard and International 
> Standards Organization, ANSI/ISO 9899-1990[1992], and the amendment 
> ISO/IEC 9899:1990/Amendment 1:1993(E)

This one requires both stdint.h and inttypes.h, and requires the
latter to include the former.

> The ISO/IEC 9945-1:1990/IEEE POSIX 1003.1-1990 standard

This is a superset of C99.

> The X/Open Common Applications Environment Specification, System 
> Interfaces and Headers, Issue 4

This is a superset of POSIX.

> The IBM Systems Application Architecture (SAA) C Level 2 language 
> definition.

I've no idea what this is, but I can't see that it matters here.

If the kit indeed is missing stdint.h and inttypes.h, the claim that
it meets the above specifications is clearly false.

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




More information about the ffmpeg-devel mailing list