Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1f9aa4

Browse files
committed
Change PyInit_plpy to external linkage
Module initialization functions in Python 3 must have externallinkage, because PyMODINIT_FUNC does dllexport on Windows-likeplatforms. Without this change, the build with Python 3 fails onWindows.
1 parentf684bcb commite1f9aa4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4066,7 +4066,13 @@ PLy_add_exceptions(PyObject *plpy)
40664066
}
40674067

40684068
#ifPY_MAJOR_VERSION >=3
4069-
staticPyMODINIT_FUNC
4069+
/*
4070+
* Must have external linkage, because PyMODINIT_FUNC does dllexport on
4071+
* Windows-like platforms.
4072+
*/
4073+
PyMODINIT_FUNCPyInit_plpy(void);
4074+
4075+
PyMODINIT_FUNC
40704076
PyInit_plpy(void)
40714077
{
40724078
PyObject*m;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp