mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-15 21:08:37 +00:00
Vincent Batts
ec6b1ae20e
There is a discrepancy of behavior of `github.com/urfave/cli` between using go1.12 and go1.15, when the dependency is not present as vendored source. Now this builds fine with go1.12 There are users of tar-split as a package. It is the hope that by adding this vendored source it does not impact them depending on tar-split itself. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
30 lines
587 B
Go
30 lines
587 B
Go
// Copyright 2012 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.
|
|
|
|
// +build windows,race
|
|
|
|
package windows
|
|
|
|
import (
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
const raceenabled = true
|
|
|
|
func raceAcquire(addr unsafe.Pointer) {
|
|
runtime.RaceAcquire(addr)
|
|
}
|
|
|
|
func raceReleaseMerge(addr unsafe.Pointer) {
|
|
runtime.RaceReleaseMerge(addr)
|
|
}
|
|
|
|
func raceReadRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceReadRange(addr, len)
|
|
}
|
|
|
|
func raceWriteRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceWriteRange(addr, len)
|
|
}
|