Skip to content

Commit

Permalink
Merge pull request #29 from l-kramer/l-kramer-ios-fix
Browse files Browse the repository at this point in the history
Fix iOS compilation.
  • Loading branch information
s-ludwig authored Feb 12, 2024
2 parents 47d5e54 + 0efa404 commit 14a9547
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 14a9547

Please sign in to comment.