diff options
author | Friedemann Kleint <[email protected]> | 2022-02-24 07:43:09 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2022-02-24 08:56:21 +0100 |
commit | 1995338b631dda248c311e179fcd4952cbb4b80e (patch) | |
tree | d6d5390fc89c3705f788fb1537f03e7bd0c1ca41 /sources/shiboken6/libshiboken/helper.cpp | |
parent | 58ace971fcdde8e7d0334913ee5257ce498f864e (diff) |
Fix build with 3.10/Limited API
Py_TPFLAGS_MAPPING and Py_TPFLAGS_SEQUENCE are not defined
for Limited API.
Amends aaceba1a73fcab34c3e75b3bee63b793cc96a62c.
Pick-to: 6.2
Change-Id: Ia279639e6a7b6e1a6c4b4a3c978b6be9ebe1183c
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/shiboken6/libshiboken/helper.cpp')
-rw-r--r-- | sources/shiboken6/libshiboken/helper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/libshiboken/helper.cpp b/sources/shiboken6/libshiboken/helper.cpp index 5acbe2d8e..656855724 100644 --- a/sources/shiboken6/libshiboken/helper.cpp +++ b/sources/shiboken6/libshiboken/helper.cpp @@ -98,10 +98,12 @@ static void formatPyTypeObject(const PyTypeObject *obj, std::ostream &str) str << " [immutabletype]"; if (obj->tp_flags & Py_TPFLAGS_DISALLOW_INSTANTIATION) str << " [disallow_instantiation]"; +# ifndef Py_LIMITED_API if (obj->tp_flags & Py_TPFLAGS_MAPPING) str << " [mapping]"; if (obj->tp_flags & Py_TPFLAGS_SEQUENCE) str << " [sequence]"; +# endif // !Py_LIMITED_API # endif // 3.10 # endif // 3.9 #endif // 3.8 |