]> granicus.if.org Git - postgresql/commit
Change PyInit_plpy to external linkage
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 18 Aug 2011 09:53:32 +0000 (12:53 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 18 Aug 2011 09:59:43 +0000 (12:59 +0300)
commite1f9aa4eaecd8107230df1a1b698e8caf0fba4f8
treef1a04ca1d0ef7ceadd18c06898b09d5ecf4e824a
parentf684bcb5238c13c8ba5a3770f4d0856677f99b35
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.
src/pl/plpython/plpython.c