summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-07-09 20:23:03 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-07-09 20:23:03 +0200
commit0f2f3d6c6a4e362f62370be67ce613ecf8d3d91c (patch)
tree0ce03977ff89acb0ddcee898049af6daf705e8ab
parentfcced4de651a2a71b028af9994ae959760139a99 (diff)
downloadbcop-0f2f3d6c6a4e362f62370be67ce613ecf8d3d91c.tar.gz
bcop-0f2f3d6c6a4e362f62370be67ce613ecf8d3d91c.tar.bz2
Generate c++ compatible headers.
-rw-r--r--VERSION2
-rw-r--r--src/bcop.xslt10
2 files changed, 10 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 7868ed6..04b56d1 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-VERSION=0.1.3
+VERSION=0.1.4
diff --git a/src/bcop.xslt b/src/bcop.xslt
index 9ea6e5c..02869b5 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>