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

Rich Felker dalias
Sun Nov 11 02:45:37 CET 2007


On Sat, Nov 10, 2007 at 10:08:02PM +0000, M?ns Rullg?rd wrote:
> 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.
> > ^GThe 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.

No, that's C90 not C99. Neither is required.

> > ^GThe ISO/IEC 9945-1:1990/IEEE POSIX 1003.1-1990 standard
> 
> This is a superset of C99.

No, it's an ancient version of POSIX. Look at the date, 1990.

> > ^GThe X/Open Common Applications Environment Specification, System 
> > Interfaces and Headers, Issue 4
> 
> This is a superset of POSIX.

Of an ancient version of POSIX...

Rich




More information about the ffmpeg-devel mailing list