go.sys: fix imports to cgc/p/go.sys, add build tags

Approach but probably not achieve a green build.

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/126120043
This commit is contained in:
Rob Pike
2014-08-12 22:59:00 -07:00
parent 55e2a23348
commit 279b3782ad
23 changed files with 42 additions and 15 deletions
+1 -1
View File
@@ -661,7 +661,7 @@ const srcTemplate = `
package {{packagename}}
import "unsafe"{{if windowsdot}}
import "windows"{{end}}
import "code.google.com/p/go.sys/windows"{{end}}
var (
{{template "dlls" .}}
+1 -1
View File
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build race
// +build windows,race
package windows
+1 -1
View File
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !race
// +build windows,!race
package windows
+2
View File
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
package windows
func itoa(val int) string { // do it here rather than with fmt to avoid dependency
+2
View File
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
// Package windows contains an interface to the low-level operating system
// primitives. OS details vary depending on the underlying system, and
// by default, godoc will display the OS-specific documentation for the current
+4 -1
View File
@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
package windows_test
import (
"testing"
"windows"
"code.google.com/p/go.sys/windows"
)
func testSetGetenv(t *testing.T, key, value string) {
+2 -1
View File
@@ -9,7 +9,8 @@ import (
"os"
"path/filepath"
"testing"
"windows"
"code.google.com/p/go.sys/windows"
)
func TestWin32finddata(t *testing.T) {