aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/python25compat.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-24 18:46:26 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-24 18:46:26 +0200
commit0225a252f756359d1fca5474998a2a11cdbda46d (patch)
tree1475ce065f1d71d9cd334e608062876f81af6a95 /sources/shiboken2/libshiboken/python25compat.h
parent2bc0decca59d867dbf893e34cf9f2ff9745ab603 (diff)
parent6a22e8cb35cfccbacd65b56e193bf2ae83f205ea (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'sources/shiboken2/libshiboken/python25compat.h')
-rw-r--r--sources/shiboken2/libshiboken/python25compat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken2/libshiboken/python25compat.h b/sources/shiboken2/libshiboken/python25compat.h
index fc25aa3e5..b8a4950d9 100644
--- a/sources/shiboken2/libshiboken/python25compat.h
+++ b/sources/shiboken2/libshiboken/python25compat.h
@@ -48,9 +48,9 @@
*/
#if PY_VERSION_HEX < 0x02060000
-#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
-#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
-#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
+#define Py_REFCNT(ob) (((PyObject *)(ob))->ob_refcnt)
+#define Py_TYPE(ob) (((PyObject *)(ob))->ob_type)
+#define Py_SIZE(ob) (((PyVarObject *)(ob))->ob_size)
#define PyVarObject_HEAD_INIT(type, size) \
PyObject_HEAD_INIT(type) size,
#define PyType_Modified(t)
@@ -90,7 +90,7 @@ typedef struct {
#define PyBytes_Concat PyString_Concat
#define PyBytes_Size PyString_Size
-inline PyObject* PyUnicode_FromString(const char* s)
+inline PyObject *PyUnicode_FromString(const char *s)
{
std::size_t len = std::strlen(s);
return PyUnicode_DecodeUTF8(s, len, 0);