Commit 6b37e97c authored by Berk Geveci's avatar Berk Geveci

Should not use decl if not on Windows.

parent a85e67d9
......@@ -194,14 +194,22 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
for (i = 0; i < classes.size(); i++)
#ifdef _WIN32
fprintf(fout,"extern \"C\" {__declspec( dllexport) PyObject *PyVTKClass_%sNew(char *); }\n",classes[i].c_str());
fprintf(fout,"extern \"C\" {PyObject *PyVTKClass_%sNew(char *); }\n",classes[i].c_str());
fprintf(fout,"\nstatic PyMethodDef Py%s_ClassMethods[] = {\n",
fprintf(fout,"{NULL, NULL}};\n\n");
#ifdef _WIN32
fprintf(fout,"extern \"C\" {__declspec( dllexport) void init%s();}\n\n",kitName);
fprintf(fout,"extern \"C\" {void init%s();}\n\n",kitName);
/* module init function */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment