mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933)
This commit is contained in:
parent
c45da6ae16
commit
fb170cf50d
4 changed files with 6 additions and 6 deletions
|
|
@ -1934,7 +1934,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
|
||||||
}
|
}
|
||||||
replacement = freplacement;
|
replacement = freplacement;
|
||||||
}
|
}
|
||||||
#ifdef Py_NORMALIZE_CENTURY
|
#ifdef _Py_NORMALIZE_CENTURY
|
||||||
else if (ch == 'Y' || ch == 'G'
|
else if (ch == 'Y' || ch == 'G'
|
||||||
|| ch == 'F' || ch == 'C'
|
|| ch == 'F' || ch == 'C'
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
2
configure
generated
vendored
2
configure
generated
vendored
|
|
@ -28218,7 +28218,7 @@ printf "%s\n" "$ac_cv_normalize_century" >&6; }
|
||||||
if test "$ac_cv_normalize_century" = yes
|
if test "$ac_cv_normalize_century" = yes
|
||||||
then
|
then
|
||||||
|
|
||||||
printf "%s\n" "#define Py_NORMALIZE_CENTURY 1" >>confdefs.h
|
printf "%s\n" "#define _Py_NORMALIZE_CENTURY 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6803,7 +6803,7 @@ int main(void)
|
||||||
[ac_cv_normalize_century=yes])])
|
[ac_cv_normalize_century=yes])])
|
||||||
if test "$ac_cv_normalize_century" = yes
|
if test "$ac_cv_normalize_century" = yes
|
||||||
then
|
then
|
||||||
AC_DEFINE([Py_NORMALIZE_CENTURY], [1],
|
AC_DEFINE([_Py_NORMALIZE_CENTURY], [1],
|
||||||
[Define if year with century should be normalized for strftime.])
|
[Define if year with century should be normalized for strftime.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1737,9 +1737,6 @@
|
||||||
SipHash13: 3, externally defined: 0 */
|
SipHash13: 3, externally defined: 0 */
|
||||||
#undef Py_HASH_ALGORITHM
|
#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. */
|
/* Define if you want to enable remote debugging support. */
|
||||||
#undef Py_REMOTE_DEBUG
|
#undef Py_REMOTE_DEBUG
|
||||||
|
|
||||||
|
|
@ -2026,6 +2023,9 @@
|
||||||
/* HACL* library can compile SIMD256 implementations */
|
/* HACL* library can compile SIMD256 implementations */
|
||||||
#undef _Py_HACL_CAN_COMPILE_VEC256
|
#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 */
|
/* Define to force use of thread-safe errno, h_errno, and other functions */
|
||||||
#undef _REENTRANT
|
#undef _REENTRANT
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue