]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1709: dynamic build with python 3.12 breaks v9.0.1709
authorZdenek Dohnal <zdohnal@redhat.com>
Sun, 13 Aug 2023 17:37:09 +0000 (19:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 13 Aug 2023 17:39:27 +0000 (19:39 +0200)
commite5e4709a6ac02dc2a17bd6e4d02e799269ba5ea9
treeda325ce9a4783d48b63a33d96b44c54fb043eedd
parent8ef1fbc0c3ca8dca32c352f3cf30e7a4b3096a94
patch 9.0.1709: dynamic build with python 3.12 breaks

Problem: dynamic build with python 3.12 breaks
Solution: if_python3.c: Fix building dynamic Python3 interpreter

There are new extern global variables defined in python3 development
files, which types are within python3 library, so they break dynamic
python3 interpret Vim plugin.

Since the variables are used in macro `Py_SIZE` which is used in other
python3 headers, the dummy variables have to defined before including
Python.h.

closes: #12660

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
src/if_python3.c
src/version.c