diff --git a/sip/tdecore/kmacroexpander.sip b/sip/tdecore/kmacroexpander.sip index bb3a39d..8d0d3d0 100644 --- a/sip/tdecore/kmacroexpander.sip +++ b/sip/tdecore/kmacroexpander.sip @@ -143,7 +143,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End %ConvertFromTypeCode if (!sipCpp) Py_INCREF (Py_None); @@ -272,7 +267,7 @@ protected: // PyObject *LongLong; - return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); + return PyLong_FromLongLong (*(PY_LONG_LONG *)sipCpp); %End %ConvertToTypeCode @@ -296,17 +291,12 @@ protected: %MappedType ulonglong //converts a Python long { -%TypeHeaderCode -#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End %ConvertFromTypeCode if (!sipCpp) Py_INCREF (Py_None); return Py_None; - return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); + return PyLong_FromUnsignedLongLong (*(PY_LONG_LONG *)sipCpp); %End %ConvertToTypeCode diff --git a/sip/tdeio/authinfo.sip b/sip/tdeio/authinfo.sip index 95ff7da..e3b5a07 100644 --- a/sip/tdeio/authinfo.sip +++ b/sip/tdeio/authinfo.sip @@ -151,7 +151,7 @@ typedef TQMap KStringListMap; for (it = map.begin (); it != map.end (); ++it) { - PyObject *sKey = SIPBytes_FromString ((const char *)((TQString)it.key ())); + PyObject *sKey = PyBytes_FromString ((const char *)((TQString)it.key ())); PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_TQStringList, sipTransferObj); if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0))