diff --git a/src/c-client.xsl b/src/c-client.xsl
index a15d824..26e05a3 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -1049,6 +1049,10 @@ authorization from the authors.
+#ifdef __cplusplus
+extern "C" {
+#endif
+
@@ -1078,6 +1082,10 @@ authorization from the authors.
+#ifdef __cplusplus
+}
+#endif
+
#endif
/**