diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2017-09-25 17:41:58 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2017-09-25 17:41:58 +0200 |
commit | ee80beeacb3d334102b28ec09ba7b582860eebf1 (patch) | |
tree | 2bd335b92c9822dfa994ec721f78953b81e2c82b /Cython/Utility/ModuleSetupCode.c | |
parent | a656e09722d4c58f5e8271328733823048478140 (diff) | |
download | cython-ee80beeacb3d334102b28ec09ba7b582860eebf1.tar.gz |
Remove duplicate code for fast access to PyThreadState.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 18efffc7b..cdd2d95d0 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -248,7 +248,8 @@ #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #if PY_VERSION_HEX >= 0x03060000 -//#elif PY_VERSION_HEX >= 0x03050200 + //#elif PY_VERSION_HEX >= 0x03050200 + // Actually added in 3.5.2, but compiling against that does not guarantee that we get imported there. #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() |