diff options
author | Armin Rigo <arigo@tunes.org> | 2020-06-10 22:53:01 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-06-10 22:53:01 +0200 |
commit | 03700246095f6494a20b8ef0ffd217c45062ecfb (patch) | |
tree | ba111cd3095707ed8a614bea17c6e3ac1c8f7a13 /c | |
parent | fc1d60bfb4a1e8ac58126ff4df672d0f8483c721 (diff) | |
download | cffi-03700246095f6494a20b8ef0ffd217c45062ecfb.tar.gz |
Oops, 2.7 fix
Diffstat (limited to 'c')
-rw-r--r-- | c/_cffi_backend.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c index b3c1c86..f647d39 100644 --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -111,9 +111,6 @@ # define PyText_InternInPlace PyUnicode_InternInPlace # define PyText_InternFromString PyUnicode_InternFromString # define PyIntOrLong_Check PyLong_Check -# if PY_VERSION_HEX < 0x030900a4 -# define Py_SET_REFCNT(obj, val) (Py_REFCNT(obj) = (val)) -# endif #else # define STR_OR_BYTES "str" # define PyText_Type PyString_Type @@ -151,6 +148,10 @@ (PyCObject_FromVoidPtr(pointer, destructor)) #endif +#if PY_VERSION_HEX < 0x030900a4 +# define Py_SET_REFCNT(obj, val) (Py_REFCNT(obj) = (val)) +#endif + /************************************************************/ /* base type flag: exactly one of the following: */ |