Skip to content

Commit 3eb3ffd

Browse files
Falldogmartyanov
authored andcommitted
(py3.10) fix pyconcrete building error
[why] https://docs.python.org/3/whatsnew/3.10.html#id2 The PY_SSIZE_T_CLEAN macro must now be defined to use PyArg_ParseTuple() and Py_BuildValue() formats which use #: es#, et#, s#, u#, y#, z#, U# and Z# See Parsing arguments and building values and the PEP 353. [how] #define PY_SSIZE_T_CLEAN before include Python.h
1 parent e3a7680 commit 3eb3ffd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyconcrete_ext/pyconcrete.c

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16+
#define PY_SSIZE_T_CLEAN
1617
#include <stdio.h>
1718
#include <stdlib.h>
1819
#include <Python.h>

0 commit comments

Comments
 (0)