1
0
mirror of https://github.com/golang/go synced 2024-11-19 08:24:41 -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:
Alex Brainman 2014-11-21 15:59:22 +11:00
parent 0a38b2cdaf
commit 841de809bb

View File

@ -63,6 +63,7 @@ func main() {
if _cgo_free == nil {
gothrow("_cgo_free missing")
}
if GOOS != "windows" {
if _cgo_setenv == nil {
gothrow("_cgo_setenv missing")
}
@ -70,6 +71,7 @@ func main() {
gothrow("_cgo_unsetenv missing")
}
}
}
main_init()