Re: [PATCH libcacard 3/3] libcacard: add G_BEGIN/END_DECLS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/19/2015 10:30 AM, Marc-André Lureau wrote:
> If the compiler in use is a C++ compiler, adds extern "C" around the
> header.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
> ---
>  src/libcacard.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/libcacard.h b/src/libcacard.h
> index 0770d13..2b2082e 100644
> --- a/src/libcacard.h
> +++ b/src/libcacard.h
> @@ -5,6 +5,10 @@
>  #ifndef LIBCACARD_H
>  #define LIBCACARD_H
>  
> +#include <glib.h>
> +

I guess this glib.h include shouldn't be here.

> +G_BEGIN_DECLS
> +
>  #define __LIBCACARD_H_INSIDE__
>  
>  #include "cac.h"
> @@ -20,4 +24,6 @@
>  #include "vreadert.h"
>  #include "vscard_common.h"
>  
> +G_END_DECLS
> +
>  #endif
> 


-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko@xxxxxxxxxx
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]