diff options
author | Will Schroeder <will.schroeder@kitware.com> | 2002-07-25 20:25:39 (GMT) |
---|---|---|
committer | Will Schroeder <will.schroeder@kitware.com> | 2002-07-25 20:25:39 (GMT) |
commit | 8dd16025746bc3c8baa2f6361d17aead15a2d913 (patch) | |
tree | b860d1d817dea694e6ebe8b5864cd4fc92f60607 /Source/cmVTKWrapTclCommand.cxx | |
parent | bc72728f2b309098f5e9e3e67c16a892e7263c6c (diff) | |
download | CMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.zip CMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.tar.gz CMake-8dd16025746bc3c8baa2f6361d17aead15a2d913.tar.bz2 |
fixed warning
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapTclCommand.cxx | 5 |
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"); |