chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
General: Update for Python 2.5.
[pyke]
/
catacomb-python.h
diff --git
a/catacomb-python.h
b/catacomb-python.h
index 722d7adb9faacee622c236b0b3a7b3f514e2e379..79034af56ab07183ee63782befe7339d1617372d 100644
(file)
--- a/
catacomb-python.h
+++ b/
catacomb-python.h
@@
-152,6
+152,11
@@
return (0); \
}
+#if PY_VERSION_HEX < 0x02050000 /* Compatibility hack */
+# define ht_name name
+# define ht_type type
+#endif
+
#define root_pytype 0
#define type_pytype &PyType_Type
#define INITTYPE(ty, base) do { \