[Ffmpeg-devel] [PATCH] Missing "inttypes.h" on windows

Steve Lhomme slhomme
Mon Nov 7 08:25:18 CET 2005

This is the kind of trick we added to our source base :

#ifdef _MSC_VER
#    define strcasecmp stricmp

-----Original Message-----
From: ffmpeg-devel-bounces at mplayerhq.hu
[mailto:ffmpeg-devel-bounces at mplayerhq.hu] On Behalf Of Fredrik Orderud
Sent: lundi 7 novembre 2005 02:36
To: FFMpeg development discussions and patches
Subject: Re: [Ffmpeg-devel] [PATCH] Missing "inttypes.h" on windows

----- Original Message ----- 
From: "Rich Felker" <dalias at aerifal.cx>
To: "FFMpeg development discussions and patches"
<ffmpeg-devel at mplayerhq.hu>
Sent: Monday, November 07, 2005 2:33 AM
Subject: Re: [Ffmpeg-devel] [PATCH] Missing "inttypes.h" on windows

> On Sun, Nov 06, 2005 at 07:43:12PM +0100, Fredrik Orderud wrote:
>> Neither the Microsoft windows platform SDK nor Visual Studio ships
>> the
>> "inttypes.h" header. This leads to compile errors when using ffmpeg
>> in
>> in visual-studio projects, unless EMULATE_INTTYPES is defined.
>> I propose automatically defining EMULATE_INTTYPES in
>> for all windows-systems, except cygwin and mingw. This would simplify

>> usage
>> of ffmpeg libraries on windows computers.
> there are already countless other reasons why libav* will not work on
> microsoft compilers (which are not c compliant).

What are you talking about?

The ffmpeg shared libraries (DLLs) works great for me when I use them in

visual studio. I process MPEG4 movies in windows completely
trouble-free. :) 
The only thing I need to do to avoid compile errrors is to manually

Windows-users would be saved from this unnecessary trouble if 
"libavutil/common.h" had automatically defined this variable.

Fredrik Orderud
Ph.D student in Computer Science, NTNU 

ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu

More information about the ffmpeg-devel mailing list