From e72b1f224007c0f7d6059ee59b0ead6ab2ff628d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 17 Apr 2009 18:16:58 +0200 Subject: * python/generic.h: Force 0.7 compatibility to be off in Python 3 builds --- python/generic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/generic.h') 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 -- cgit v1.2.3