Skip to content

Commit a646d33

Browse files
committed
windows: make "go generate" command work on any OS
See issue golang/go#16368 for details. Updates golang/go#16368 Change-Id: Ic3294385a350aee41887f59cbcf5b0af7742ff3b Reviewed-on: https://go-review.googlesource.com/24952 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent b518c29 commit a646d33

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

windows/mksyscall.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2009 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package windows
6+
7+
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go

windows/registry/mksyscall.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2015 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package registry
6+
7+
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go

windows/registry/syscall.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ package registry
88

99
import "syscall"
1010

11-
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go
12-
1311
const (
1412
_REG_OPTION_NON_VOLATILE = 0
1513

windows/syscall_windows.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
"unsafe"
1515
)
1616

17-
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go
18-
1917
type Handle uintptr
2018

2119
const InvalidHandle = ^Handle(0)

0 commit comments

Comments
 (0)