]> git.ipfire.org Git - thirdparty/postgresql.git/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 10:41:56 +0000 (13:41 +0300)
commit7b1509d56256fa391d4ae71288be194923a41947
tree5349c4a28d35af708fdd6c8a9cd7d2e2f4323304
parentf85e4057cfe62752eb57d2315d4acda5bb5c1e9e
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