builtin: fix termux println (#9829)

pull/9892/head^2
Thomas Treffner 2021-04-28 08:11:50 +02:00 committed by GitHub
parent f4e92997f2
commit 1fbf75f2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,8 @@ pub fn println(s string) {
}
$if android {
C.fprintf(C.stdout, c'%.*s\n', s.len, s.str)
} $else $if ios {
}
$if ios {
C.WrappedNSLog(s.str)
} $else $if freestanding {
bare_print(s.str, u64(s.len))