[FFmpeg-devel] compound literal in public header file

wm4 nfxjfg at googlemail.com
Wed May 16 21:08:28 EEST 2018

On Wed, 16 May 2018 17:58:46 +0800
Zhao Zhili <quinkblack at foxmail.com> wrote:

> On 2018年05月16日 17:47, Steinar H. Gunderson wrote:
> > On Wed, May 16, 2018 at 11:41:23AM +0200, Tobias Rapp wrote:  
> >> Yes, I am referring to usage of the libavutil headers in C. If the macro is
> >> only hidden for C++ and available in C, that would be OK for me. But if the
> >> static inline function variant would support both C and C++, this would look
> >> like a solution where C++ users are not forced to implement a more
> >> "integrated" replacement but of course have the option to do so.  
> > While we're at it, would it be possible to have extern "C" { for the headers,
> > too? :-) (Wrapped in #ifdef __cplusplus, of course.)
> >
> > /* Steinar */  
> This is what I thought. Although let the C++ programmer use it and fail
> and learn something new is cool, I prefer less surprise.

More people should be educated about which of C and C++ is the inferior

More information about the ffmpeg-devel mailing list