fix(c/os): add missing clearenv for macOS

This commit is contained in:
Aofei Sheng
2024-08-03 09:55:25 +08:00
parent 0bd259403c
commit 4b568fc469
4 changed files with 59 additions and 4 deletions

View File

@@ -28,7 +28,8 @@ import (
)
const (
LLGoPackage = "decl"
LLGoFiles = "_os/os.c"
LLGoPackage = "link"
)
const (
@@ -150,9 +151,6 @@ func Putenv(env *c.Char) c.Int
//go:linkname Unsetenv C.unsetenv
func Unsetenv(name *c.Char) c.Int
//go:linkname Clearenv C.clearenv
func Clearenv()
// -----------------------------------------------------------------------------
//go:linkname Fchdir C.fchdir