Commit d65607e2 authored by Dave DeMarle's avatar Dave DeMarle
Browse files

fix symbol import/export warning on windows static python dashboard

Should fix warnings like this one:
vtkCommonDataModelPython27D-6.1.lib(vtkVectorPython.obj) : warning LNK4217: locally defined symbol ?PyvtkTuple_IdLi4EE_Type@@3U_typeobject@@A (struct _typeobject PyvtkTuple_IdLi4EE_Type) imported in function "void __cdecl `dynamic initializer for 'PyvtkVector_IdLi4EE_Type''(void)" (??__EPyvtkVector_IdLi4EE_Type@@YAXXZ) [C:\Dashboards\MyTests\VTK-nightly-static\Wrapping\Python\vtkpython.vcxproj]

Change-Id: Ie361c8fbbcbc029b38ffdd4d06e576d0bff5ef9a
parent a0206433
......@@ -4174,7 +4174,11 @@ static void vtkWrapPython_GenerateSpecialType(
"#define DECLARED_Py%s_Type\n"
"#endif\n"
"\n",
#if defined(VTK_BUILD_SHARED_LIBS)
supername, (is_external ? "VTK_ABI_IMPORT" : "VTK_ABI_EXPORT"),
#else
supername, "VTK_ABI_EXPORT",
#endif
supername, supername);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment