aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-09-16 14:27:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:15 -0300
commitfd5dd85d0d0dcc4faaf3a1ca5bd6a5df857f7844 (patch)
treecbbb5e773dc62b14e5e94e9c6217075ae6a2c41d /libshiboken
parent9785f258d93b4976872a17fbf61bd27a4c4123cd (diff)
Port libsample typesystem and glue codes to Python 3.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/sbkpython.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libshiboken/sbkpython.h b/libshiboken/sbkpython.h
index 0b7f2a9cd..85a097b2a 100644
--- a/libshiboken/sbkpython.h
+++ b/libshiboken/sbkpython.h
@@ -35,6 +35,8 @@
#define PyInt_FromLong PyLong_FromLong
#define PyInt_AsLong PyLong_AsLong
#define SbkNumber_Check PyNumber_Check
+ #define Py_TPFLAGS_CHECKTYPES 0
+
#else
// Note: if there wasn't for the old-style classes, only a PyNumber_Check would suffice.
#define SbkNumber_Check(X) \