diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-12-27 17:43:38 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-12-27 17:43:38 +0100 |
commit | 6e6e350c69c0d13eef0eea0bf8f6e83b80897e8d (patch) | |
tree | 879f0a63963929873ddf79fce8766216a3a05a94 | |
parent | 278697ce05888044354240113873da5c517bd3b5 (diff) | |
download | cython-6e6e350c69c0d13eef0eea0bf8f6e83b80897e8d.tar.gz |
Avoid a C compiler warning in PyPy3.
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 975bb254c..7642bcc2b 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -598,8 +598,11 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact + // PyPy3 used to define "PyObject_Unicode" +#ifndef PyObject_Unicode #define PyObject_Unicode PyObject_Str #endif +#endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) |