Commit 699c92d5 authored by Robert Bradshaw's avatar Robert Bradshaw

Avoid PyCapsule_Import for Python 2.6

parent 888d2058
...@@ -998,7 +998,11 @@ static void __Pyx_FastGilFuncInit0(void) { ...@@ -998,7 +998,11 @@ static void __Pyx_FastGilFuncInit0(void) {
#endif #endif
static void __Pyx_FastGilFuncInit(void) { static void __Pyx_FastGilFuncInit(void) {
#if PY_VERSION_HEX >= 0x02070000
struct __Pyx_FastGilVtab* shared = (struct __Pyx_FastGilVtab*)PyCapsule_Import("_cython_" CYTHON_ABI ".FastGilFuncs", 1); struct __Pyx_FastGilVtab* shared = (struct __Pyx_FastGilVtab*)PyCapsule_Import("_cython_" CYTHON_ABI ".FastGilFuncs", 1);
#else
struct __Pyx_FastGilVtab* shared = NULL;
#endif
if (shared) { if (shared) {
__Pyx_FastGilFuncs = *shared; __Pyx_FastGilFuncs = *shared;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment