[x264-devel] Minor changes to simplify inclusion from C++

BugMaster BugMaster at narod.ru
Wed Aug 12 08:46:14 CEST 2015


On Wed, 5 Aug 2015 04:47:15 +0100, Mark Webster wrote:
> Hi all,

> Forgive me if this has been suggested before, but I found nothing after a lot of searching.

> This patch simply wraps x264.h in extern "C" if included from a C++
> target, and names  the previously anonymous struct types to enable forward declarations.

> I understand if you want to keep the header pure from "#ifdef
> __cplusplus", but in this case would it be acceptable just to modify
> the typedef structs, as in the patch, to enable forward declarations?

> Many thanks!
> -Mark

Hi. Can you a little bit a elaborate why you want forward declarations
for this structs. As I understand you would still need to include
x264.h than why not include it earlier? Can you explain your use case
for this forward declarations?



More information about the x264-devel mailing list