guard HAVE_LONG_LONG definition to prevent redefinition (#28898)

(grafted from 4745d801cae2d57e3432313acd0b76b8b4cc9c75)
This commit is contained in:
Benjamin Peterson 2016-12-07 23:54:28 -08:00
parent 446e606bfe
commit b5e688a8ff
1 changed files with 3 additions and 2 deletions

View 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. */