summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-12-08 07:54:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-12-08 07:54:28 (GMT)
commit0d5742dec0a44c6fdbb544bc683855ff78554e72 (patch)
treec4a595ad0d13fceaeb12b1c8c5645424f6099b7c /Include/pyport.h
parent098f85bb7d276a8deaff389853db24d0d96dc4a9 (diff)
downloadcpython-0d5742dec0a44c6fdbb544bc683855ff78554e72.zip
cpython-0d5742dec0a44c6fdbb544bc683855ff78554e72.tar.gz
cpython-0d5742dec0a44c6fdbb544bc683855ff78554e72.tar.bz2
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h5
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. */