summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bcop.xslt10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bcop.xslt b/src/bcop.xslt
index e877abd..9a7f134 100644
--- a/src/bcop.xslt
+++ b/src/bcop.xslt
@@ -1331,6 +1331,10 @@ static void </xsl:text>
<xsl:text>OptionsGetCompPluginInfo
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
CompPluginVTable *</xsl:text>
<xsl:value-of select="$plugin"/>
<xsl:text>OptionsGetCompPluginInfo (void);
@@ -1341,7 +1345,11 @@ CompPluginVTable *</xsl:text>
<xsl:call-template name="printOptionEnums"/>
<xsl:call-template name="printOptionMasks"/>
<xsl:call-template name="printFunctionDefinitions"/>
- <xsl:text>#endif
+ <xsl:text>#ifdef __cplusplus
+}
+#endif
+
+#endif
</xsl:text>
</xsl:template>