diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-12-07 23:54:28 -0800 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-12-07 23:54:28 -0800 |
commit | a25723e245372ba78f152530290584b59a97b575 (patch) | |
tree | efc41bc5875ea367ad85b3cf7169819373f27b26 /Include/pyport.h | |
parent | 1c4796dc1d3f31ed077e54fecaaaa045eecbb854 (diff) | |
download | cpython-a25723e245372ba78f152530290584b59a97b575.tar.gz |
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
Diffstat (limited to 'Include/pyport.h')
-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 20f3db7481..28bf4b2148 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. */ |