pgsql: Change PyInit_plpy to external linkage - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Change PyInit_plpy to external linkage
Date
Msg-id E1Qu14n-0006i4-Fv@gemulon.postgresql.org
Whole thread Raw
List 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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7b1509d56256fa391d4ae71288be194923a41947

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


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Change PyInit_plpy to external linkage
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Improve detection of Python 3.2 installations