Skip to content

Commit 0efa404

Browse files
authored
Fix iOS compilation.
1 parent 47d5e54 commit 0efa404

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

engine/source/dmdscript/dglobal.d

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,12 @@ void* Dglobal_readln(Dobject pthis, CallContext *cc, Dobject othis, Value* ret,
661661
if(c == EOF)
662662
break;
663663
}
664+
else version(iOS)
665+
{
666+
c = core.stdc.stdio.getchar();
667+
if(c == EOF)
668+
break;
669+
}
664670
else version(FreeBSD)
665671
{
666672
c = core.stdc.stdio.getchar();

0 commit comments

Comments
 (0)