mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
runtime: only use CRLF on baremetal systems
We should only do this on baremetal systems, not on Linux, macOS, and Windows. In fact, Windows will convert LF into CRLF in its putchar function.
This commit is contained in:
committed by
Ron Evans
parent
73ab44c178
commit
41bcad9c19
@@ -273,7 +273,9 @@ func printspace() {
|
||||
}
|
||||
|
||||
func printnl() {
|
||||
putchar('\r')
|
||||
if baremetal {
|
||||
putchar('\r')
|
||||
}
|
||||
putchar('\n')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user