Commit 841de809 authored by Alex Brainman's avatar Alex Brainman

[dev.cc] runtime: windows does not use _cgo_setenv and _cgo_unsetenv

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/175480043
parent 0a38b2cd
...@@ -63,11 +63,13 @@ func main() { ...@@ -63,11 +63,13 @@ func main() {
if _cgo_free == nil { if _cgo_free == nil {
gothrow("_cgo_free missing") gothrow("_cgo_free missing")
} }
if _cgo_setenv == nil { if GOOS != "windows" {
gothrow("_cgo_setenv missing") if _cgo_setenv == nil {
} gothrow("_cgo_setenv missing")
if _cgo_unsetenv == nil { }
gothrow("_cgo_unsetenv missing") if _cgo_unsetenv == nil {
gothrow("_cgo_unsetenv missing")
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment