pgsql: Change PyInit_plpy to external linkage

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change PyInit_plpy to external linkage
Date: 2011-08-18 11:30:50
Message-ID: E1Qu0oE-0006Tr-6D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d4c24254fab0b9908211f990c4239664f3ed5630

Modified Files
--------------
src/pl/plpython/plpython.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-08-18 11:47:57 pgsql: Improve detection of Python 3.2 installations
Previous Message Tom Lane 2011-08-18 00:18:39 pgsql: Update 9.1 release notes to reflect commits through today.