From aee7de5926b8d778d2f66064e32c65b89cd7fb63 Mon Sep 17 00:00:00 2001 From: k3_kaimu Date: Fri, 22 Nov 2013 22:15:46 +0900 Subject: [PATCH] Fix issue 11580 - A unittest of std.stdio.rawRead cannot run and some unittests in std.stdio must run on Win64. Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=11580 --- std/stdio.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/std/stdio.d b/std/stdio.d index 432ed4b3dc2..acfd1701779 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -532,7 +532,7 @@ $(D rawRead) always reads in binary mode on Windows. T[] rawRead(T)(T[] buffer) { enforce(buffer.length, "rawRead must take a non-empty buffer"); - version(Win32) + version(Windows) { immutable fd = ._fileno(_p.handle); immutable mode = ._setmode(fd, _O_BINARY); @@ -602,7 +602,6 @@ Throws: $(D ErrnoException) if the file is not opened or if the call to $D(fread _name, "'")); } - version(Win64) {} else unittest { auto deleteme = testFilename(); @@ -636,7 +635,6 @@ Throws: $(D Exception) if the file is not opened. } } - version(Win64) {} else unittest { auto deleteme = testFilename();