This is an automated email from the ASF dual-hosted git repository.
jimjag pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new d2cec6bfcc pyuno: drop redundant PY_DLLEXPORT before PyMODINIT_FUNC
d2cec6bfcc is described below
commit d2cec6bfcccbb03de355d582f9f736bce1607955
Author: Jim Jagielski <[email protected]>
AuthorDate: Wed Aug 5 06:56:47 2026 -0400
pyuno: drop redundant PY_DLLEXPORT before PyMODINIT_FUNC
On modern Python (3.9+), PyMODINIT_FUNC already expands to
extern "C" Py_EXPORTED_SYMBOL PyObject*
---
main/pyuno/inc/pyuno/pyuno.hxx | 2 +-
main/pyuno/source/module/pyuno_module.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/pyuno/inc/pyuno/pyuno.hxx b/main/pyuno/inc/pyuno/pyuno.hxx
index 67704b2c15..7cd4950094 100644
--- a/main/pyuno/inc/pyuno/pyuno.hxx
+++ b/main/pyuno/inc/pyuno/pyuno.hxx
@@ -77,7 +77,7 @@
the global interpreter lock is held
*/
#if PY_MAJOR_VERSION >= 3
-PY_DLLEXPORT PyMODINIT_FUNC PyInit_pyuno();
+PyMODINIT_FUNC PyInit_pyuno();
#else
extern "C" PY_DLLEXPORT void SAL_CALL initpyuno();
#endif
diff --git a/main/pyuno/source/module/pyuno_module.cxx
b/main/pyuno/source/module/pyuno_module.cxx
index 61f7a79d35..cf42d97900 100644
--- a/main/pyuno/source/module/pyuno_module.cxx
+++ b/main/pyuno/source/module/pyuno_module.cxx
@@ -711,7 +711,7 @@ static struct PyModuleDef PyUNOModule =
};
}
-PY_DLLEXPORT PyMODINIT_FUNC PyInit_pyuno()
+PyMODINIT_FUNC PyInit_pyuno()
{
PyObject *m;