[2/2] Replace references to C2x with C23

Message ID 20241101140635.354570-3-newlib@lenardmollenkopf.de
State New
Headers
Series [1/2] sys/features.h: Use _ISOC23_SOURCE instead of _ISOC23_SOURCE and remap _ISOC2x_SOURCE to _ISOC23_SOURCE |

Commit Message

Lenard Mollenkopf Nov. 1, 2024, 2:06 p.m. UTC
  Signed-off-by: Lenard Mollenkopf <newlib@lenardmollenkopf.de>
---
 winsup/cygwin/include/uchar.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/winsup/cygwin/include/uchar.h b/winsup/cygwin/include/uchar.h
index ed548ac73..032a380b0 100644
--- a/winsup/cygwin/include/uchar.h
+++ b/winsup/cygwin/include/uchar.h
@@ -4,7 +4,7 @@ 
 #include <sys/cdefs.h>
 #include <wchar.h>
 
-/* Either C2x or if C++ doesn't already define char8_t */
+/* Either C23 or if C++ doesn't already define char8_t */
 #if __ISO_C_VISIBLE >= 2020 && !defined (__cpp_char8_t)
 typedef unsigned char		char8_t;
 #endif
@@ -17,7 +17,7 @@  typedef	__uint_least32_t	char32_t;
 
 __BEGIN_DECLS
 
-/* Either C2x or if C++ defines char8_t */
+/* Either C23 or if C++ defines char8_t */
 #if __ISO_C_VISIBLE >= 2020 || defined (__cpp_char8_t)
 size_t  c8rtomb(char * __restrict, char8_t, mbstate_t * __restrict);
 size_t	mbrtoc8(char8_t * __restrict, const char * __restrict, size_t,