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

Rich Felker dalias
Mon May 14 17:40:50 CEST 2007

On Mon, May 14, 2007 at 01:46:18PM +0200, Steve Lhomme wrote:
> My 2 additional cents: in general in C++ you should not put the extern 
> "C" around your includes. After all the same header file could have both 
> C calling convention and C++ ones. Only the person/group who created the 
> ..h file know that. And it shouldn't be the job of the 3rd party to find 
> out if it's correct to assume everything is C. It's just extra work and 
> the creator of the software knows better than anyone else.

Huh? Why is C++ special? Should the header files auto-detect if you're
using Pascal and give you pascal bindings? Or Java? Or ...???


More information about the ffmpeg-devel mailing list