You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable all (implicit) uses of OsStr(ing)Ext in HSTRING and PCWSTR for WSL/Linux support
On non-Windows targets - such as Linux and WSL - the
`std::os::windows::ffi::OsStrExt` and
`std::os::windows::ffi::OsStringExt` extension traits are not available.
To support compiling and running _on_ such non-Windows targets (not just
cross-compiling _from_ them, for a Windows target) anything using these
traits has to be guarded in the same way using a `#[cfg(windows)]`.
If needed fallbacks can be implemented manually, but that likely
requires a bit more thought since wide-strings on these platforms
typically have [32-bit `wchar_t` sizes, with Windows' 16-bit being the
exception].
[32-bit `wchar_t` sizes, with Windows' 16-bit being the exception]: https://en.cppreference.com/w/cpp/language/types#Character%20types:~:text=wchar_t,a%20distinct%20type
0 commit comments