Rev 71: Python 2.5 doesn't have the Py_TYPE macro definition. in http://bazaar.launchpad.net/~jameinel/meliae/trunk

John Arbash Meinel john at arbash-meinel.com
Thu Sep 10 22:23:22 BST 2009


At http://bazaar.launchpad.net/~jameinel/meliae/trunk

------------------------------------------------------------
revno: 71
revision-id: john at arbash-meinel.com-20090910212306-eob5sjgkiz21we9n
parent: john at arbash-meinel.com-20090910210429-l3sukso76pxqp1we
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Thu 2009-09-10 16:23:06 -0500
message:
  Python 2.5 doesn't have the Py_TYPE macro definition.
-------------- next part --------------
=== modified file 'meliae/_scanner_core.c'
--- a/meliae/_scanner_core.c	2009-09-10 21:04:29 +0000
+++ b/meliae/_scanner_core.c	2009-09-10 21:23:06 +0000
@@ -21,6 +21,9 @@
 
 #include "_scanner_core.h"
 
+#ifndef Py_TYPE
+#  define Py_TYPE(o) ((o)->ob_type)
+#endif
 
 struct ref_info {
     FILE *out;



More information about the bazaar-commits mailing list