diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-12-08 07:54:28 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-12-08 07:54:28 (GMT) |
commit | b5e688a8ff37d4fff06c06d6ec625ac6653306f6 (patch) | |
tree | 4fc8364ba0f4817d2c1f6b7fde4e9a7f21d75dd2 | |
parent | 446e606bfe9d2398ad9dfd538085e36afb6c3384 (diff) | |
download | cpython-b5e688a8ff37d4fff06c06d6ec625ac6653306f6.zip cpython-b5e688a8ff37d4fff06c06d6ec625ac6653306f6.tar.gz cpython-b5e688a8ff37d4fff06c06d6ec625ac6653306f6.tar.bz2 |
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
(grafted from 4745d801cae2d57e3432313acd0b76b8b4cc9c75)
-rw-r--r-- | Include/pyport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 20f3db7..28bf4b2 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -37,9 +37,10 @@ Used in: Py_SAFE_DOWNCAST * integral synonyms. Only define the ones we actually need. */ -// long long is required now. Define HAVE_LONG_LONG unconditionally for -// compatibility. +// long long is required. Ensure HAVE_LONG_LONG is defined for compatibility. +#ifndef HAVE_LONG_LONG #define HAVE_LONG_LONG +#endif #ifndef PY_LONG_LONG #define PY_LONG_LONG long long /* If LLONG_MAX is defined in limits.h, use that. */ |