[Spice-devel] [PATCH libcacard 3/3] libcacard: add G_BEGIN/END_DECLS
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Nov 19 04:30:38 PST 2015
If the compiler in use is a C++ compiler, adds extern "C" around the
header.
Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
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>
+
+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
--
2.5.0
More information about the Spice-devel
mailing list