[Ffmpeg-devel] [PATCH] Add allformats.h include file to move *_init() functions and other

Rich Felker dalias
Thu Jun 29 21:34:48 CEST 2006


On Thu, Jun 29, 2006 at 10:37:28AM -0700, Mike Melanson wrote:
> Steve Lhomme wrote:
> > Is there a C compiler that fails on extern "C" ? At least among the
> > one(s) supported by FFMPEG.
> 
> It's a moot issue since the extern is surrounded by "#ifdef __cplusplus".

My point is that C++ code does not belong in a C project, even under
#ifdef!!! If a C++ project is doing interlanguage linking to C code,
then it should put the C headers inside its own 'extern "C"' block to
make this clear.

Rich





More information about the ffmpeg-devel mailing list