about summary refs log tree commit diff
path: root/wcsmbs/Makefile
diff options
context:
space:
mode:
authorTom Honermann <tom@honermann.net>2022-06-30 08:52:14 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-06 09:29:42 -0300
commit8bcca1db3d7c0dc900a4cad4054c1439baf73684 (patch)
treec3d2bb8a6e32462178ba347f755b43c5ae51caff /wcsmbs/Makefile
parent598f790fb17bcfff7fedde5209933a82d7748328 (diff)
downloadglibc-8bcca1db3d7c0dc900a4cad4054c1439baf73684.tar.gz
glibc-8bcca1db3d7c0dc900a4cad4054c1439baf73684.tar.xz
glibc-8bcca1db3d7c0dc900a4cad4054c1439baf73684.zip
stdlib: Implement mbrtoc8, c8rtomb, and the char8_t typedef.
This change provides implementations for the mbrtoc8 and c8rtomb
functions adopted for C++20 via WG21 P0482R6 and for C2X via WG14
N2653.  It also provides the char8_t typedef from WG14 N2653.

The mbrtoc8 and c8rtomb functions are declared in uchar.h in C2X
mode or when the _GNU_SOURCE macro or C++20 __cpp_char8_t feature
test macro is defined.

The char8_t typedef is declared in uchar.h in C2X mode or when the
_GNU_SOURCE macro is defined and the C++20 __cpp_char8_t feature
test macro is not defined (if __cpp_char8_t is defined, then char8_t
is a builtin type).

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'wcsmbs/Makefile')
-rw-r--r--wcsmbs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index df9a85f4a9..bda281ad70 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -42,7 +42,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
 	    wcsmbsload mbsrtowcs_l \
 	    isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
 	    isoc99_swscanf isoc99_vswscanf \
-	    mbrtoc16 c16rtomb mbrtoc32 c32rtomb
+	    mbrtoc8 c8rtomb mbrtoc16 c16rtomb mbrtoc32 c32rtomb
 
 strop-tests :=  wcscmp wcsncmp wmemcmp wcslen wcschr wcsrchr wcscpy wcsnlen \
 		wcpcpy wcsncpy wcpncpy wcscat wcsncat wcschrnul wcsspn wcspbrk \