summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/tdeconfigbase.sip
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:33:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:33:44 +0900
commit79ced6fbbdda1158aef437760ee0455fb9a9016d (patch)
tree5c1dc33e117f0a4846cb874f41434722741eb388 /sip/tdecore/tdeconfigbase.sip
parent12236609d02d708a0076a78145d527e023f47bab (diff)
downloadpytde-79ced6fb.tar.gz
pytde-79ced6fb.zip
Remove/replace old conditional python code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/tdecore/tdeconfigbase.sip')
-rw-r--r--sip/tdecore/tdeconfigbase.sip14
1 files changed, 2 insertions, 12 deletions
diff --git a/sip/tdecore/tdeconfigbase.sip b/sip/tdecore/tdeconfigbase.sip
index 8b0d147..26b392f 100644
--- a/sip/tdecore/tdeconfigbase.sip
+++ b/sip/tdecore/tdeconfigbase.sip
@@ -260,11 +260,6 @@ protected:
%MappedType longlong
//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);
@@ -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