Repository: lucy-clownfish Updated Branches: refs/heads/master 6f2a0a193 -> e8b0af8db
Use C linkage in boot.h Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/e8b0af8d Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/e8b0af8d Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/e8b0af8d Branch: refs/heads/master Commit: e8b0af8dbdd8a7774d4cf96a004fc1aa09cd8b76 Parents: 6f2a0a1 Author: Nick Wellnhofer <[email protected]> Authored: Sun Jul 20 23:32:14 2014 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Sun Jul 20 23:32:14 2014 +0200 ---------------------------------------------------------------------- compiler/src/CFCPerl.c | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e8b0af8d/compiler/src/CFCPerl.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCPerl.c b/compiler/src/CFCPerl.c index 7290762..41fce09 100644 --- a/compiler/src/CFCPerl.c +++ b/compiler/src/CFCPerl.c @@ -181,9 +181,17 @@ S_write_boot_h(CFCPerl *self) { "#ifndef %s\n" "#define %s 1\n" "\n" + "#ifdef __cplusplus\n" + "extern \"C\" {\n" + "#endif\n" + "\n" "void\n" "%s();\n" "\n" + "#ifdef __cplusplus\n" + "}\n" + "#endif\n" + "\n" "#endif /* %s */\n" "\n" "%s\n";
