summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorWill Schroeder <will.schroeder@kitware.com>2002-07-25 20:25:39 (GMT)
committerWill Schroeder <will.schroeder@kitware.com>2002-07-25 20:25:39 (GMT)
commit8dd16025746bc3c8baa2f6361d17aead15a2d913 (patch)
treeb860d1d817dea694e6ebe8b5864cd4fc92f60607 /Source/cmVTKWrapTclCommand.cxx
parentbc72728f2b309098f5e9e3e67c16a892e7263c6c (diff)
downloadCMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.zip
CMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.tar.gz
CMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.tar.bz2
fixed warning
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index 9c808b0..03e213a 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -237,7 +237,10 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
if (!strcmp(kitName,"Vtkcommontcl"))
{
- fprintf(fout,"int vtkCommand(ClientData cd, Tcl_Interp *interp,\n int argc, char *argv[]);\n");
+ fprintf(fout,"extern \"C\" {\n"
+ " int vtkCommand(ClientData cd, Tcl_Interp *interp,\n"
+ " int argc, char *argv[]);\n"
+ "}\n");
fprintf(fout,"\nTcl_HashTable vtkInstanceLookup;\n");
fprintf(fout,"Tcl_HashTable vtkPointerLookup;\n");
fprintf(fout,"Tcl_HashTable vtkCommandLookup;\n");