Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
diff --git a/PC/os2emx/python27.def b/PC/os2emx/python27.def
index d1c38dc..5477cd2 100644
--- a/PC/os2emx/python27.def
+++ b/PC/os2emx/python27.def
@@ -210,6 +210,19 @@
"PyInstance_Type"
"PyMethod_Type"
+; From python27_s.lib(capsule)
+ "PyCapsule_GetContext"
+ "PyCapsule_GetDestructor"
+ "PyCapsule_GetName"
+ "PyCapsule_GetPointer"
+ "PyCapsule_Import"
+ "PyCapsule_IsValid"
+ "PyCapsule_New"
+ "PyCapsule_SetContext"
+ "PyCapsule_SetDestructor"
+ "PyCapsule_SetName"
+ "PyCapsule_SetPointer"
+
; From python27_s.lib(cobject)
"PyCObject_FromVoidPtr"
"PyCObject_FromVoidPtrAndDesc"