Use errno directly on Windows, for oserror implementation.
Turns out, several Windows CRT calls do not set the thread local errno stuff, so cannot be queried with the Win32 API, and need to use errno directly.
Use errno directly on Windows, for oserror implementation.
Turns out, several Windows CRT calls do not set the thread
local errno stuff, so cannot be queried with the Win32 API,
and need to use errno directly.