summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-12-07 23:54:28 -0800
committerBenjamin Peterson <benjamin@python.org>2016-12-07 23:54:28 -0800
commit684e36b27ccefc80437a6313e03429de5b4b4173 (patch)
treef8bd9adbfb05d7b4484e27f0ad797e84bc99328f
parent856204a815b230b6ffa9e02712e31e38f1313755 (diff)
downloadcpython-684e36b27ccefc80437a6313e03429de5b4b4173.tar.gz
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
(grafted from 4745d801cae2d57e3432313acd0b76b8b4cc9c75)
-rw-r--r--Include/pyport.h5
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. */