[Issue 10227] New: _fileno, _setmode, _O_BINARY undefined when building x64 on windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 1 03:57:25 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10227

           Summary: _fileno, _setmode, _O_BINARY undefined when building
                    x64 on windows
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: yarrluben+dbugs at googlemail.com


--- Comment #0 from Pierre LeMoine <yarrluben+dbugs at googlemail.com> 2013-06-01 03:57:24 PDT ---
_fileno, _setmode and _O_BINARY are missing when compiling a program for x64 on
windows with the microsoft linker.
Adding a few lines to src/phobos/std/stdio.d fixes the problem.
To reproduce the problem, use std.stdio.rawRead or std.stdio.rawWrite in any
program.

On further inspecting the source, it seems that rawRead and rawWrite use
different version statements for switching to binary; rawRead uses Win32 while
rawWrite uses Windows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list