summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-07-10 20:07:51 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-07-10 20:07:51 (GMT)
commit694cff3cf9fd41b176b60fcf9fe868c6819d04fd (patch)
tree43083bbae914fb98801ab79f7467f7a22e303c30 /Source
parent120b2523f5f37618baa10eeb9d480d2d2447b188 (diff)
downloadCMake-694cff3cf9fd41b176b60fcf9fe868c6819d04fd.zip
CMake-694cff3cf9fd41b176b60fcf9fe868c6819d04fd.tar.gz
CMake-694cff3cf9fd41b176b60fcf9fe868c6819d04fd.tar.bz2
fix warning on Sun
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index 7dc38a6..9c808b0 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -267,10 +267,10 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
if (!strcmp(kitName,"Vtkcommontcl"))
{
- fprintf(fout,"void vtkCommonDeleteAssocData(ClientData cd)\n");
+ fprintf(fout,"extern \"C\"\n{\nvoid vtkCommonDeleteAssocData(ClientData cd)\n");
fprintf(fout," {\n");
fprintf(fout," vtkTclInterpStruct *tis = static_cast<vtkTclInterpStruct*>(cd);\n");
- fprintf(fout," delete tis;\n }\n");
+ fprintf(fout," delete tis;\n }\n}\n");
}
/* the main declaration */