[all-commits] [llvm/llvm-project] 42a8ff: [libc] Add "struct tm" declaration to <wchar.h> (#...
Alexey Samsonov via All-commits
all-commits at lists.llvm.org
Thu Oct 30 20:31:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 42a8ff877d47131ecb1280a1cc7e5e3c3bca6952
https://github.com/llvm/llvm-project/commit/42a8ff877d47131ecb1280a1cc7e5e3c3bca6952
Author: Alexey Samsonov <vonosmas at gmail.com>
Date: 2025-10-30 (Thu, 30 Oct 2025)
Changed paths:
M libc/include/wchar.yaml
Log Message:
-----------
[libc] Add "struct tm" declaration to <wchar.h> (#165795)
`<wchar.h>` should at least include the forward declaration of `struct tm`,
since it's needed for the `wcsftime` declaration (also, see
https://man7.org/linux/man-pages/man0/wchar.h.0p.html).
Even though we don't yet have `wcsftime`, some downstream users (notably
- libcxx) expects to see `struct tm` declaration there, to re-declare it under
`std` namespace:
https://github.com/llvm/llvm-project/blob/c46bfed1a484d30cd251a9a225649d74e3bf0af5/libcxx/include/cwchar#L135
So, add this type declaration to llvm-libc version of `wchar.h` now.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list