From 6811b49d2b5305dfe099f26ce1dc5a1255a2b379 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 Jul 2002 16:47:21 -0400 Subject: [PATCH] BUG: Generated vtkCommand prototype cannot be extern "C" because it may not match with the version in VTK. --- Source/cmVTKWrapTclCommand.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx index 03e213ac0..5a707db70 100644 --- a/Source/cmVTKWrapTclCommand.cxx +++ b/Source/cmVTKWrapTclCommand.cxx @@ -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");