[3.14] gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022) (GH-137947)

A runtime check is needed to support cross-compiling.

Remove the _Py_NORMALIZE_CENTURY macro.
Remove _pydatetime.py's _can_support_c99.
(cherry picked from commit 719e5c3f71)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-10-07 19:59:06 +02:00 committed by GitHub
parent fad7bfc282
commit 7d9b2671c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 48 additions and 191 deletions

View file

@ -2023,9 +2023,6 @@
/* 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