summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-10-06 14:35:29 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-10-06 14:35:29 +0200
commitb8af0aa5281214a3216df758052f8fb5b730c460 (patch)
tree2f733db68ed5b440b525eb52fca0f2635e24461c
parent5662209157d0ef10725c59570cb480022c6591dc (diff)
downloadgobject-introspection-b8af0aa5281214a3216df758052f8fb5b730c460.tar.gz
giscanner: always define PY_SSIZE_T_CLEAN
This is required for Python 3.10 and always a good idea anyway.
-rw-r--r--giscanner/giscannermodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 43f8bdea..996a509e 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -22,6 +22,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "sourcescanner.h"