]> granicus.if.org Git - python/commitdiff
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
authorBenjamin Peterson <benjamin@python.org>
Thu, 8 Dec 2016 07:54:28 +0000 (23:54 -0800)
committerBenjamin Peterson <benjamin@python.org>
Thu, 8 Dec 2016 07:54:28 +0000 (23:54 -0800)
Include/pyport.h

index 20f3db748155c835edf621a00ea7ab4224916a99..28bf4b214851c2150f3b2ccb515200e3fbfaeb83 100644 (file)
@@ -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. */