[PATCH] <wchar.h>: Make wmempcy, wcwidth, wcswidth available by default
Andreas Schwab
schwab@suse.de
Tue Dec 6 09:42:50 GMT 2022
On Dez 06 2022, Florian Weimer via Libc-alpha wrote:
> @@ -363,14 +363,14 @@ extern size_t wcsnrtombs (char *__restrict __dst,
>
>
> /* The following functions are extensions found in X/Open CAE. */
> -#ifdef __USE_XOPEN
> +#if defined __USE_XOPEN || defined __USE_MISC
> /* Determine number of column positions required for C. */
> extern int wcwidth (wchar_t __c) __THROW;
>
> /* Determine number of column positions required for first N wide
> characters (or fewer if S ends before this) in S. */
> extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
> -#endif /* Use X/Open. */
> +#endif /* __USE_XOPEN || __USE_MISC. */
Again, I do not see how that matches what FreeBSD does. Both
definitions are protected by __XSI_VISIBLE there.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list