diff --git a/src/dfmt/main.d b/src/dfmt/main.d index 7f4e7b6..3adc618 100644 --- a/src/dfmt/main.d +++ b/src/dfmt/main.d @@ -113,10 +113,10 @@ else // On Windows, set stdout to binary mode (needed for correct EOL writing) // See Phobos' stdio.File.rawWrite { - import std.stdio : fileno, _O_BINARY, setmode; + import std.stdio : _fileno, _O_BINARY, _setmode; - immutable fd = fileno(output.getFP()); - setmode(fd, _O_BINARY); + immutable fd = _fileno(output.getFP()); + _setmode(fd, _O_BINARY); version (CRuntime_DigitalMars) { import core.atomic : atomicOp;