churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame 00253-fix-HAVE_LONG_LONG-compatibility.patch

0da740b
0da740b
# HG changeset patch
0da740b
# User Victor Stinner <victor.stinner@gmail.com>
0da740b
# Date 1483653533 -3600
0da740b
# Node ID fad67c66885f0bd9ebafe2a54f0fa12b5a8fe3bf
0da740b
# Parent  52d671684342cd2dcc804566d4c755634d3210a8
0da740b
Issue #27961: Define HAVE_LONG_LONG as 1.
0da740b
0da740b
Fix backward compatibility issue, HAVE_LONG_LONG was defined but empty, whereas
0da740b
it is defined as 1 in Python 3.5.
0da740b
0da740b
diff --git a/Include/pyport.h b/Include/pyport.h
0da740b
--- a/Include/pyport.h
0da740b
+++ b/Include/pyport.h
0da740b
@@ -39,7 +39,7 @@ Used in:  Py_SAFE_DOWNCAST
0da740b
 
0da740b
 // long long is required. Ensure HAVE_LONG_LONG is defined for compatibility.
0da740b
 #ifndef HAVE_LONG_LONG
0da740b
-#define HAVE_LONG_LONG
0da740b
+#define HAVE_LONG_LONG 1
0da740b
 #endif
0da740b
 #ifndef PY_LONG_LONG
0da740b
 #define PY_LONG_LONG long long
0da740b