[Spice-devel] [PATCH 1/4] client/smartcard: use proper include delemiters

Hans de Goede hdegoede at redhat.com
Mon Mar 14 02:25:19 PDT 2011


Hi,

Ack, note I believe you should put the following in the libcacard headers:

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

....

#ifdef __cplusplus
}
#endif /* __cplusplus */

This way you don't need to put extern "C" { } around the includes
in every cpp program using libcacard.

Regards,

Hans



On 03/09/2011 10:20 PM, Alon Levy wrote:
> ---
>   client/smartcard_channel.cpp |    8 ++++----
>   1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/client/smartcard_channel.cpp b/client/smartcard_channel.cpp
> index 98f24a8..272d29d 100644
> --- a/client/smartcard_channel.cpp
> +++ b/client/smartcard_channel.cpp
> @@ -4,10 +4,10 @@
>   #include "mutex.h"
>
>   extern "C" {
> -#include "vscard_common.h"
> -#include "vreader.h"
> -#include "vcard_emul.h"
> -#include "vevent.h"
> +#include<vscard_common.h>
> +#include<vreader.h>
> +#include<vcard_emul.h>
> +#include<vevent.h>
>   }
>
>   #include "smartcard_channel.h"


More information about the Spice-devel mailing list