[Ffmpeg-devel] [PATCH] Dummy libavcodec/swscale.h should beenclosed in #ifdef __cplusplus

Luca Barbato lu_zero
Sat Aug 19 17:55:35 CEST 2006


Luca Abeni wrote:
> Hi Ramiro,
> 
> On Fri, 2006-08-18 at 22:12 -0300, Ramiro Polla wrote:
>> Hello,
>>
>> Since the dummy swscale.h file in libavcodec is part of the external
>> API, it should be enclosed in #ifdef __cplusplus.

Only if it is intended to be used as C++ header...

> Uhmm... I was under the impression that the program including an header
> is responsible for the extern "C" stuff... But I see that all the public
> ffmpeg headers have this #ifdef, so I am committing it.

Only if the C++ program is wrapping a pure C header...

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list