[FFmpeg-devel] [patch] Fix compilation error for C++ users

Ronald S. Bultje rsbultje
Tue May 18 15:32:14 CEST 2010


Hi,

On Tue, May 18, 2010 at 9:26 AM, rdb <ffmpeg at rdb.name> wrote:
> The attached patch fixes an issue that C++ users get when they try to
> include avutil/common.h.
> The file uses UINT64_C, which in the case of C++ is only available when
> __STDC_LIMIT_MACROS is defined.
> It also includes a minor fix for a C++-style comment that I spotted in that
> file. ;-)

We've discussed this before, it's a c++ bug (or g++ bug, if you so wish).

Your best choice is to add -D__STDC_LIMIT_MACROS to your CFLAGS when
compiling your c++ application.

Ronald



More information about the ffmpeg-devel mailing list