|
| From: | Sevan Janiyan |
| Subject: | Re: [PATCH] lib/stdio.in.h: define _POSIX_C_SOURCE on >=Sierra |
| Date: | Tue, 7 Nov 2023 22:11:48 +0000 |
| User-agent: | Mozilla Thunderbird |
On 07/11/2023 21:53, Bruno Haible wrote:
sprintf and vsprintf were deprecated in macOS Sierra 10.12.First, we need to get the facts right. Paul indicated in <https://lists.gnu.org/archive/html/bug-gnulib/2023-03/msg00006.html> that the problem occurs starting with macOS 13.
I did look at the libc source to find version numbers but wasn't paying close attention and missed that the change in Sierra is related to Swift. int vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0) __swift_unavailable("Use vsnprintf instead.");
https://github.com/apple-oss-distributions/Libc/blob/337e89574a59b5259d3c953a425bbd3bb2ffff04/include/stdio.h#L314 Sevan
| [Prev in Thread] | Current Thread | [Next in Thread] |