[gst-cvs] gst-plugins-bad: shm: Add C++ protection

Sebastian Dröge sebastian.droege at collabora.co.uk
Fri Oct 8 16:35:06 PDT 2010


On Fri, 2010-10-08 at 14:02 -0700, Olivier Crête wrote:
> Module: gst-plugins-bad
> Branch: master
> Commit: b7143de618efeefec08fd0bd37d6aabc714aa700
> URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b7143de618efeefec08fd0bd37d6aabc714aa700
> 
> Author: Olivier Crête <olivier.crete at collabora.co.uk>
> Date:   Fri Oct  8 17:01:29 2010 -0400
> 
> shm: Add C++ protection
> 
> Add c++ protection in the relevant places
> 
> ---
> 
>  sys/shm/shmalloc.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/sys/shm/shmalloc.h b/sys/shm/shmalloc.h
> index ab24426..d5aa581 100644
> --- a/sys/shm/shmalloc.h
> +++ b/sys/shm/shmalloc.h
> @@ -46,6 +46,10 @@
>  
>  #endif
>  
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  typedef struct _ShmAllocSpace ShmAllocSpace;
>  typedef struct _ShmAllocBlock ShmAllocBlock;

Isn't the closing } missing here now? Also why don't you simply use
G_BEGIN_DECLS? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-commits/attachments/20101009/ea01315f/attachment.pgp>


More information about the Gstreamer-commits mailing list