BUG: Generated vtkCommand prototype cannot be extern "C" because it may not match with the version in VTK.

This commit is contained in:
Brad King 2002-07-25 16:47:21 -04:00
parent 23deae1040
commit 6811b49d2b
1 changed files with 2 additions and 4 deletions

View File

@ -237,10 +237,8 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
if (!strcmp(kitName,"Vtkcommontcl"))
{
fprintf(fout,"extern \"C\" {\n"
" int vtkCommand(ClientData cd, Tcl_Interp *interp,\n"
" int argc, char *argv[]);\n"
"}\n");
fprintf(fout,"int vtkCommand(ClientData cd, Tcl_Interp *interp,\n"
" int argc, char *argv[]);\n");
fprintf(fout,"\nTcl_HashTable vtkInstanceLookup;\n");
fprintf(fout,"Tcl_HashTable vtkPointerLookup;\n");
fprintf(fout,"Tcl_HashTable vtkCommandLookup;\n");