Mercurial > projects > ldc
comparison runtime/ldc.diff @ 854:0ffa92f4ac99
added a patch to tango's stdio for ldc on win32
author | elrood |
---|---|
date | Sun, 14 Dec 2008 17:53:20 +0100 |
parents | e66c627c177e |
children |
comparison
equal
deleted
inserted
replaced
853:82ad6c0c601c | 854:0ffa92f4ac99 |
---|---|
862 + public import ldc.cstdarg; | 862 + public import ldc.cstdarg; |
863 +} | 863 +} |
864 else | 864 else |
865 { | 865 { |
866 alias void* va_list; | 866 alias void* va_list; |
867 Index: tango/stdc/stdio.d | |
868 =================================================================== | |
869 --- tango/stdc/stdio.d (revision 4155) | |
870 +++ tango/stdc/stdio.d (working copy) | |
871 @@ -249,6 +249,24 @@ | |
872 stdprn = &(*_imp___iob)[4]; | |
873 } | |
874 } | |
875 + else version (LDC) { | |
876 + extern FILE[_NFILE]* _imp___iob; | |
877 + | |
878 + auto FILE* stdin; | |
879 + auto FILE* stdout; | |
880 + auto FILE* stderr; | |
881 + auto FILE* stdaux; | |
882 + auto FILE* stdprn; | |
883 + | |
884 + static this() | |
885 + { | |
886 + stdin = &(*_imp___iob)[0]; | |
887 + stdout = &(*_imp___iob)[1]; | |
888 + stderr = &(*_imp___iob)[2]; | |
889 + stdaux = &(*_imp___iob)[3]; | |
890 + stdprn = &(*_imp___iob)[4]; | |
891 + } | |
892 + } | |
893 else | |
894 { | |
895 extern FILE[_NFILE] _iob; |