[FFmpeg-devel] [PATCH] Remove printf format string errors in windows builds
Mon Jan 24 01:21:00 CET 2011
Larry Robinson <silver-dad at comcast.net> writes:
> On 1/23/2011 3:40 PM, Diego Elio Petten? wrote:
>> Il giorno dom, 23/01/2011 alle 14.58 -0800, Larry Robinson ha scritto:
>>> This patch uses #ifndef _WIN32 to replace these specifiers with `%Id'
>>> (the windows equivalent) for windows builds.
>> Aren't there PRI or SCN macros to use to replace those rather than
>> doubling the lines with #if _WIN32?
> Yes, I could include <inttypes.h> and use PRId64 and PRIu64;
That is wrong. size_t and intptr_t can be any size. That is why they
have their own format letters.
mans at mansr.com
More information about the ffmpeg-devel