[FFmpeg-devel] [RFC] extern "C" usage

Måns Rullgård mans
Sun May 13 17:56:40 CEST 2007

Alex Beregszaszi <alex at rtfs.hu> writes:

> Hi,
> some headers are enclosed into extern "C" { }, while others are not.
> Such is aes.h.
> When using ffmpeg libs in a C++ application this brings a confusion, as
> you need to enclose some headers with it, while others not.
> To solve this, I propose to remove all the extern "C" occurances in
> FFmpeg and let this job be done by the developers of C++ applications.
> The other solution would be adding these to the headers which are
> missing it.

Such cruft should definitely not be in internal headers.  I personally
think we should remove it from external headers too.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list