mirror of
https://github.com/golang/go
synced 2024-11-21 20:14:52 -07:00
doc/progs: fix windows/amd64
R=rsc CC=alex.brainman, golang-dev, vcc.163 https://golang.org/cl/4965050
This commit is contained in:
parent
eae0a48cf5
commit
2afc46f2b2
@ -15,7 +15,7 @@ type File struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newFile(fd syscall.Handle, name string) *File {
|
func newFile(fd syscall.Handle, name string) *File {
|
||||||
if fd < 0 {
|
if fd == ^syscall.Handle(0) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return &File{fd, name}
|
return &File{fd, name}
|
||||||
|
@ -15,7 +15,7 @@ fi
|
|||||||
rm -f *.$O
|
rm -f *.$O
|
||||||
|
|
||||||
if [ "$GOOS" = "windows" ];then
|
if [ "$GOOS" = "windows" ];then
|
||||||
$GC -o file.8 file_windows.go
|
$GC -o file.$O file_windows.go
|
||||||
else
|
else
|
||||||
$GC file.go
|
$GC file.go
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user