mirror of
https://github.com/golang/go
synced 2024-11-19 05:54:44 -07:00
[dev.cc] runtime: windows does not use _cgo_setenv and _cgo_unsetenv
LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/175480043
This commit is contained in:
parent
0a38b2cdaf
commit
841de809bb
@ -63,11 +63,13 @@ func main() {
|
||||
if _cgo_free == nil {
|
||||
gothrow("_cgo_free missing")
|
||||
}
|
||||
if _cgo_setenv == nil {
|
||||
gothrow("_cgo_setenv missing")
|
||||
}
|
||||
if _cgo_unsetenv == nil {
|
||||
gothrow("_cgo_unsetenv missing")
|
||||
if GOOS != "windows" {
|
||||
if _cgo_setenv == nil {
|
||||
gothrow("_cgo_setenv missing")
|
||||
}
|
||||
if _cgo_unsetenv == nil {
|
||||
gothrow("_cgo_unsetenv missing")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user