Browse Source

fix warning on Sun

Ken Martin 23 năm trước cách đây
mục cha
commit
694cff3cf9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Source/cmVTKWrapTclCommand.cxx

+ 2 - 2
Source/cmVTKWrapTclCommand.cxx

@@ -267,10 +267,10 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
 
   if (!strcmp(kitName,"Vtkcommontcl"))
     {
-    fprintf(fout,"void vtkCommonDeleteAssocData(ClientData cd)\n");
+    fprintf(fout,"extern \"C\"\n{\nvoid vtkCommonDeleteAssocData(ClientData cd)\n");
     fprintf(fout,"  {\n");
     fprintf(fout,"  vtkTclInterpStruct *tis = static_cast<vtkTclInterpStruct*>(cd);\n");
-    fprintf(fout,"  delete tis;\n  }\n");
+    fprintf(fout,"  delete tis;\n  }\n}\n");
     }
     
   /* the main declaration */