BUG: Generated vtkCommand prototype cannot be extern "C" because it may not match with the version in VTK.
This commit is contained in:
parent
23deae1040
commit
6811b49d2b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue