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

Mark Webster mark.webster at gmail.com
Wed Aug 5 05:47:15 CEST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20150805/45c4ab82/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-fluff-for-including-x264.h-from-CPP.patch
Type: application/octet-stream
Size: 3710 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20150805/45c4ab82/attachment.obj>


More information about the x264-devel mailing list