summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
diff options
context:
space:
mode:
authorsiddhu89902015-09-11 02:28:56 +0530
committersiddhu89902015-09-11 02:28:56 +0530
commited0947602f9b92489be97219e36eb284804dab0a (patch)
tree0972e6c28e60c026fb4e84d9e7ed6b0f922e6066 /2.3-1/macros/CCodeGeneration/C_InitHeader.sci
parent48097fd488521bbb915c301a313ca0a7f0b6eb17 (diff)
downloadScilab2C-ed0947602f9b92489be97219e36eb284804dab0a.tar.gz
Scilab2C-ed0947602f9b92489be97219e36eb284804dab0a.tar.bz2
Scilab2C-ed0947602f9b92489be97219e36eb284804dab0a.zip
Changes made for making directory 'arduino' in output folder'
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_InitHeader.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_InitHeader.sci3
1 files changed, 3 insertions, 0 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci b/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
index 7d794127..41e13e45 100644
--- a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
+++ b/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
@@ -46,6 +46,9 @@ PrintStringInfo('** --------------------------- ',HeaderFileName,'file','y');
PrintStringInfo('*/',HeaderFileName,'file','y');
PrintStringInfo(' ',HeaderFileName,'file','y');
PrintStringInfo(' ',HeaderFileName,'file','y');
+PrintStringInfo('#ifdef __cplusplus',HeaderFileName,'file','y');
+PrintStringInfo('extern ""C"" {',HeaderFileName,'file','y');
+PrintStringInfo('#endif',HeaderFileName,'file','y');
PrintStringInfo('/*',HeaderFileName,'file','y');
PrintStringInfo('** ------------------- ',HeaderFileName,'file','y');
PrintStringInfo('** --- Prototypes. --- ',HeaderFileName,'file','y');