]> granicus.if.org Git - python/commitdiff
Thomas Herve explained to me that PyCrypto depends on the constants. I'm adding the...
authorChristian Heimes <christian@cheimes.de>
Mon, 25 Feb 2008 17:32:07 +0000 (17:32 +0000)
committerChristian Heimes <christian@cheimes.de>
Mon, 25 Feb 2008 17:32:07 +0000 (17:32 +0000)
Include/longintrepr.h

index 00af752ea8e15026b9eca0cc80f9fe74bf653fe3..df157a8f9846b71b125db838dce52eba7bc2b25d 100644 (file)
@@ -28,8 +28,13 @@ typedef BASE_TWODIGITS_TYPE stwodigits; /* signed variant of twodigits */
 #define PyLong_BASE     ((digit)1 << PyLong_SHIFT)
 #define PyLong_MASK     ((int)(PyLong_BASE - 1))
 
+/* b/w compatibility with Python 2.5 */
+#define SHIFT  PyLong_SHIFT
+#define BASE   PyLong_BASE
+#define MASK   PyLong_MASK
+
 #if PyLong_SHIFT % 5 != 0
-#error "longobject.c requires that SHIFT be divisible by 5"
+#error "longobject.c requires that PyLong_SHIFT be divisible by 5"
 #endif
 
 /* Long integer representation.