Remove usage of obsolete _fdToHandle in rt/dmain2.d (#20722)

This commit is contained in:
Jonas Meeuws 2025-01-18 22:38:22 +01:00 committed by GitHub
parent 283b5f6fea
commit e49b67e969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -616,10 +616,7 @@ extern (C) void _d_print_throwable(Throwable t)
HANDLE windowsHandle(int fd)
{
version (CRuntime_Microsoft)
return cast(HANDLE)_get_osfhandle(fd);
else
return _fdToHandle(fd);
return cast(HANDLE)_get_osfhandle(fd);
}
// ensure the exception is shown at the beginning of the line, while also