Commit 40756181 authored by Alex Brainman's avatar Alex Brainman

windows: use go generate to build zsyscall_windows.go

Also remove some empty source files while we are at it.

Change-Id: Ia3a35b274a0428196aee63ee2daacc533285d0ea
Reviewed-on: https://go-review.googlesource.com/2530Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 4a356976
# Copyright 2014 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
all: zsyscall_windows.go
TMP=/tmp/mksyscall_windows
zsyscall_windows.go: syscall_windows.go security_windows.go
go build -o $(TMP) $(GOROOT)/src/syscall/mksyscall_windows.go
GOOS=windows $(TMP) $^ | gofmt > $@
rm $(TMP)
:: Copyright 2013 The Go Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style
:: license that can be found in the LICENSE file.
@echo off
if exist syscall_windows.go goto dirok
echo mkall_windows.bat must be run from go.sys\windows directory
goto :end
:dirok
go build -o mksyscall_windows.exe %GOROOT%\src\pkg\syscall\mksyscall_windows.go
mksyscall_windows.exe syscall_windows.go security_windows.go |gofmt >zsyscall_windows.go
del mksyscall_windows.exe
:end
......@@ -14,6 +14,8 @@ import (
"unsafe"
)
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall_windows.go security_windows.go
type Handle uintptr
const InvalidHandle = ^Handle(0)
......
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package windows
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package windows
// nothing to see here
package windows
// nothing to see here
package windows
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