Commit eeef5da2 authored by Stefan Behnel's avatar Stefan Behnel

define HAVE_LONG_LONG if CPython does not but we know that it requires it

parent 8901b249
...@@ -24,6 +24,13 @@ ...@@ -24,6 +24,13 @@
#define DL_EXPORT(t) t #define DL_EXPORT(t) t
#endif #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 #ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG #define PY_LONG_LONG LONG_LONG
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment