Skip to content

Commit 376e037

Browse files
[3.14] gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) (#136387)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 145c086 commit 376e037

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
19281928
}
19291929
replacement = freplacement;
19301930
}
1931-
#ifdef Py_NORMALIZE_CENTURY
1931+
#ifdef _Py_NORMALIZE_CENTURY
19321932
else if (ch == 'Y' || ch == 'G'
19331933
|| ch == 'F' || ch == 'C'
19341934
) {

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6813,7 +6813,7 @@ int main(void)
68136813
[ac_cv_normalize_century=yes])])
68146814
if test "$ac_cv_normalize_century" = yes
68156815
then
6816-
AC_DEFINE([Py_NORMALIZE_CENTURY], [1],
6816+
AC_DEFINE([_Py_NORMALIZE_CENTURY], [1],
68176817
[Define if year with century should be normalized for strftime.])
68186818
fi
68196819

pyconfig.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,9 +1737,6 @@
17371737
SipHash13: 3, externally defined: 0 */
17381738
#undef Py_HASH_ALGORITHM
17391739

1740-
/* Define if year with century should be normalized for strftime. */
1741-
#undef Py_NORMALIZE_CENTURY
1742-
17431740
/* Define if you want to enable remote debugging support. */
17441741
#undef Py_REMOTE_DEBUG
17451742

@@ -2026,6 +2023,9 @@
20262023
/* HACL* library can compile SIMD256 implementations */
20272024
#undef _Py_HACL_CAN_COMPILE_VEC256
20282025

2026+
/* Define if year with century should be normalized for strftime. */
2027+
#undef _Py_NORMALIZE_CENTURY
2028+
20292029
/* Define to force use of thread-safe errno, h_errno, and other functions */
20302030
#undef _REENTRANT
20312031

0 commit comments

Comments
 (0)