Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5e688a

Browse files
committed
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
(grafted from 4745d801cae2d57e3432313acd0b76b8b4cc9c75)
1 parent 446e606 commit b5e688a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Include/pyport.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ Used in: Py_SAFE_DOWNCAST
3737
* integral synonyms. Only define the ones we actually need.
3838
*/
3939

40-
// long long is required now. Define HAVE_LONG_LONG unconditionally for
41-
// compatibility.
40+
// long long is required. Ensure HAVE_LONG_LONG is defined for compatibility.
41+
#ifndef HAVE_LONG_LONG
4242
#define HAVE_LONG_LONG
43+
#endif
4344
#ifndef PY_LONG_LONG
4445
#define PY_LONG_LONG long long
4546
/* If LLONG_MAX is defined in limits.h, use that. */

0 commit comments

Comments
 (0)