summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/tdeconfigbase.sip
diff options
context:
space:
mode:
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