runtime: compatible difference of stdio symbols between linux and others

This commit is contained in:
Li Jie
2024-06-06 11:01:32 +08:00
parent 15fad2e841
commit f5526f73c7
8 changed files with 42 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
; ModuleID = 'github.com/goplus/llgo/internal/runtime/c'
source_filename = "github.com/goplus/llgo/internal/runtime/c"
@__stderrp = external global ptr
@__stdinp = external global ptr
@__stdoutp = external global ptr
@llgo_stdin = alias i8*, i8** @__stdinp
@llgo_stdout = alias i8*, i8** @__stdoutp
@llgo_stderr = alias i8*, i8** @__stderrp