aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkpython.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/sbkpython.h')
-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) \