diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-06-09 10:10:26 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-06-09 10:10:26 (GMT) |
commit | 9201e7f1a663abc76a4bcd57686c1e966240da64 (patch) | |
tree | dff1a7f8a3edf7efbf0792902130da4c0fceae39 /Include | |
parent | 71d11d30c425f25ac4c3189e91c1a3ee840e6aa5 (diff) | |
download | cpython-9201e7f1a663abc76a4bcd57686c1e966240da64.zip cpython-9201e7f1a663abc76a4bcd57686c1e966240da64.tar.gz cpython-9201e7f1a663abc76a4bcd57686c1e966240da64.tar.bz2 |
Provide LLONG_MAX for S390.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 2a29506..1b274fd 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -61,9 +61,16 @@ Used in: PY_LONG_LONG #ifdef HAVE_LONG_LONG #ifndef PY_LONG_LONG #define PY_LONG_LONG long long +#if defined(LLONG_MAX) #define PY_LLONG_MIN LLONG_MIN #define PY_LLONG_MAX LLONG_MAX #define PY_ULLONG_MAX ULLONG_MAX +#elif defined(__s390__) +/* Apparently, S390 Linux has long long, but no LLONG_MAX */ +#define PY_LLONG_MAX 9223372036854775807LL +#define PY_LLONG_MIN (-PY_LLONG_MAX-1) +#define PY_ULLONG_MAX 18446744073709551615ULL +#endif /* LLONG_MAX */ #endif #endif /* HAVE_LONG_LONG */ |