# HG changeset patch # User elrood # Date 1229273600 -3600 # Node ID 0ffa92f4ac99952f0b71967bd81396b8ffa69b64 # Parent 82ad6c0c601c7419dda48ae7e887557a9c2920bc added a patch to tango's stdio for ldc on win32 diff -r 82ad6c0c601c -r 0ffa92f4ac99 runtime/ldc.diff --- a/runtime/ldc.diff Sun Dec 14 16:51:36 2008 +0100 +++ b/runtime/ldc.diff Sun Dec 14 17:53:20 2008 +0100 @@ -864,3 +864,32 @@ else { alias void* va_list; +Index: tango/stdc/stdio.d +=================================================================== +--- tango/stdc/stdio.d (revision 4155) ++++ tango/stdc/stdio.d (working copy) +@@ -249,6 +249,24 @@ + stdprn = &(*_imp___iob)[4]; + } + } ++ else version (LDC) { ++ extern FILE[_NFILE]* _imp___iob; ++ ++ auto FILE* stdin; ++ auto FILE* stdout; ++ auto FILE* stderr; ++ auto FILE* stdaux; ++ auto FILE* stdprn; ++ ++ static this() ++ { ++ stdin = &(*_imp___iob)[0]; ++ stdout = &(*_imp___iob)[1]; ++ stderr = &(*_imp___iob)[2]; ++ stdaux = &(*_imp___iob)[3]; ++ stdprn = &(*_imp___iob)[4]; ++ } ++ } + else + { + extern FILE[_NFILE] _iob;