gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933)

This commit is contained in:
Petr Viktorin 2025-07-07 17:57:48 +02:00 committed by GitHub
parent c45da6ae16
commit fb170cf50d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -1934,7 +1934,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
}
replacement = freplacement;
}
#ifdef Py_NORMALIZE_CENTURY
#ifdef _Py_NORMALIZE_CENTURY
else if (ch == 'Y' || ch == 'G'
|| ch == 'F' || ch == 'C'
) {

2
configure generated vendored
View file

@ -28218,7 +28218,7 @@ printf "%s\n" "$ac_cv_normalize_century" >&6; }
if test "$ac_cv_normalize_century" = yes
then
printf "%s\n" "#define Py_NORMALIZE_CENTURY 1" >>confdefs.h
printf "%s\n" "#define _Py_NORMALIZE_CENTURY 1" >>confdefs.h
fi

View file

@ -6803,7 +6803,7 @@ int main(void)
[ac_cv_normalize_century=yes])])
if test "$ac_cv_normalize_century" = yes
then
AC_DEFINE([Py_NORMALIZE_CENTURY], [1],
AC_DEFINE([_Py_NORMALIZE_CENTURY], [1],
[Define if year with century should be normalized for strftime.])
fi

View file

@ -1737,9 +1737,6 @@
SipHash13: 3, externally defined: 0 */
#undef Py_HASH_ALGORITHM
/* Define if year with century should be normalized for strftime. */
#undef Py_NORMALIZE_CENTURY
/* Define if you want to enable remote debugging support. */
#undef Py_REMOTE_DEBUG
@ -2026,6 +2023,9 @@
/* HACL* library can compile SIMD256 implementations */
#undef _Py_HACL_CAN_COMPILE_VEC256
/* Define if year with century should be normalized for strftime. */
#undef _Py_NORMALIZE_CENTURY
/* Define to force use of thread-safe errno, h_errno, and other functions */
#undef _REENTRANT