[FFmpeg-devel] [PATCH] replace inttypes.h with stdint.h

Måns Rullgård mans
Thu Mar 13 16:39:22 CET 2008

Rich Felker wrote:
> On Thu, Mar 13, 2008 at 09:34:57AM +0100, Diego Biurrun wrote:
>> This replaces one usage of #include <inttypes.h> with the slightly more
>> portable #include <stdint.h> in a libavutil header.  It is what all the
>> other headers use.
> Misleading description but I don't care to argue against the change
> anymore. inttypes.h is more portable due to being included in susv2
> which predates c99 and stdint.h.

Not all systems are SUSv2 compliant.  How many times have I got to tell
you there are (or have been) systems with only stdint.h available?  Yes,
they are old, but so are all systems that are missing either of those
headers.  Either we ignore legacy systems, in which case this is a
non-issue, or we try to support them, but that can't be done by choosing
one of those headers.  Either of them may be missing on any given system.

My personal opinion is that anyone who insists on running such an old
system should consider himself lucky if adjusting a few #include lines
is the only trouble with new software.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list