diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-09-18 13:26:37 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-09-18 13:26:37 +0200 |
commit | eeef5da28562aac390d34a8a4b8ec35ef03266ec (patch) | |
tree | 55f389723d1c6bb20cb6c22e48b240746d7761db /Cython/Utility/ModuleSetupCode.c | |
parent | 8901b249ab02dad8013129a6599bd5c2cbda23f1 (diff) | |
download | cython-eeef5da28562aac390d34a8a4b8ec35ef03266ec.tar.gz |
define HAVE_LONG_LONG if CPython does not but we know that it requires it
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index da21356e5..3e6521f8e 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -24,6 +24,13 @@ #define DL_EXPORT(t) t #endif +#ifndef HAVE_LONG_LONG + // CPython has required PY_LONG_LONG support for years, even if HAVE_LONG_LONG is not defined for us + #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) + #define HAVE_LONG_LONG + #endif +#endif + #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif |