diff options
author | Brad King <brad.king@kitware.com> | 2002-07-25 20:47:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-07-25 20:47:21 (GMT) |
commit | 6811b49d2b5305dfe099f26ce1dc5a1255a2b379 (patch) | |
tree | fab014c4ecb19340cb6064e2274e7790ce929c69 | |
parent | 23deae10400d9fe20f7041e754a81b76415895c9 (diff) | |
download | CMake-6811b49d2b5305dfe099f26ce1dc5a1255a2b379.zip CMake-6811b49d2b5305dfe099f26ce1dc5a1255a2b379.tar.gz CMake-6811b49d2b5305dfe099f26ce1dc5a1255a2b379.tar.bz2 |
BUG: Generated vtkCommand prototype cannot be extern "C" because it may not match with the version in VTK.
-rw-r--r-- | Source/cmVTKWrapTclCommand.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx index 03e213a..5a707db 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"); |