Merge pull request #250 from ZombineDev/fix-ms-crt-stdio

Fix compilation in Windows for CRuntime_Microsoft
This commit is contained in:
Brian Schott 2016-06-14 12:42:07 -07:00 committed by GitHub
commit e3bf26987b
1 changed files with 3 additions and 3 deletions

View File

@ -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;