summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h
index 6e66d24c..ae2871e3 100644
--- a/python/generic.h
+++ b/python/generic.h
@@ -54,6 +54,8 @@ typedef int Py_ssize_t;
#define PyString_AsString(op) PyBytes_AsString(PyUnicode_AsUTF8String(op))
#define PyInt_Check PyLong_Check
#define PyInt_AsLong PyLong_AsLong
+// Force 0.7 compatibility to be off in Python 3 builds
+#undef COMPAT_0_7
#else
#define PyBytes_Check PyString_Check
#define PyBytes_AsString PyString_AsString