Change PyInit_plpy to external linkage

Peter Eisentraut <peter_e@gmx.net>

Commit: d4c24254fab0b9908211f990c4239664f3ed5630
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-08-18T10:47:35Z
Releases: 9.0.5
Change PyInit_plpy to external linkage

Module initialization functions in Python 3 must have external
linkage, because PyMODINIT_FUNC does dllexport on Windows-like
platforms.  Without this change, the build with Python 3 fails on
Windows.

Files

PathChange+/−
src/pl/plpython/plpython.c modified +7 −1