Skip to content

Commit

Permalink
Fix iOS compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-kramer authored Feb 9, 2024
1 parent 47d5e54 commit 0efa404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/source/dmdscript/dglobal.d
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,12 @@ void* Dglobal_readln(Dobject pthis, CallContext *cc, Dobject othis, Value* ret,
if(c == EOF)
break;
}
else version(iOS)
{
c = core.stdc.stdio.getchar();
if(c == EOF)
break;
}
else version(FreeBSD)
{
c = core.stdc.stdio.getchar();
Expand Down

0 comments on commit 0efa404

Please sign in to comment.