8000 gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) · python/cpython@fb170cf · GitHub
[go: up one dir, main page]

Skip to content

Commit fb170cf

Browse files
authored
gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933)
1 parent c45da6a commit fb170cf

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
@@ -1934,7 +1934,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
19341934
}
19351935
replacement = freplacement;
19361936
}
1937-
#ifdef Py_NORMALIZE_CENTURY
1937+
#ifdef _Py_NORMALIZE_CENTURY
19381938
else if (ch == 'Y' || ch == 'G'
19391939
|| ch == 'F' || ch == 'C'
19401940
) {

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
@@ -6803,7 +6803,7 @@ int main(void)
68036803
[ac_cv_normalize_century=yes])])
68046804
if test "$ac_cv_normalize_century" = yes
68056805
then
6806-
AC_DEFINE([Py_NORMALIZE_CENTURY], [1],
6806+
AC_DEFINE([_Py_NORMALIZE_CENTURY], [1],
68076807
[Define if year with century should be normalized for strftime.])
68086808
fi
68096809

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)
0