summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-12-29 09:20:31 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-12-29 09:20:31 +0100
commitdb4001fae167fa4202986d3cb1c6246049104514 (patch)
treee7f72f7533f94a7a30507e958a922baf3544f1dc /Cython/Utility/ModuleSetupCode.c
parent51add8642f1ce01d8ec451ab0c4ba5e14244c4e2 (diff)
downloadcython-db4001fae167fa4202986d3cb1c6246049104514.tar.gz
use PyPy defined "Py_OptimizeFlag" is available
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 4961f03fe..75a0343c6 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -40,7 +40,7 @@
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
#define Py_OptimizeFlag 0
#endif