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

Rich Felker dalias
Thu Mar 13 17:03:26 CET 2008

On Thu, Mar 13, 2008 at 03:39:22PM -0000, M?ns Rullg?rd wrote:
> 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.

I told you I will not object to this patch anymore. I just think
calling stdint.h "more portable" is misleading. Instances of both
being missing exist in the real world, but since standards containing
only inttypes.h and not stdint.h exist, whereas standards the other
way around do not exist, inttypes.h is "more portable".

Anyway we can drop this. Sorry for wasting folks' time on it again.


More information about the ffmpeg-devel mailing list