2016-02-20 01:42:51 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-05-20 20:38:31 +03:00
|
|
|
"sync/atomic"
|
|
|
|
|
2016-04-23 03:16:14 +03:00
|
|
|
_ "github.com/docker/docker/autogen/winresources/dockerd"
|
2016-02-20 01:42:51 +03:00
|
|
|
)
|
2016-05-20 20:38:31 +03:00
|
|
|
|
|
|
|
//go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"
|
|
|
|
|
|
|
|
var dummy uintptr
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
// Ensure that this import is not removed by the linker. This is used to
|
|
|
|
// ensure that shell32.dll is loaded by the system loader, preventing
|
|
|
|
// go#15286 from triggering on Nano Server TP5.
|
|
|
|
atomic.LoadUintptr(&dummy)
|
|
|
|
}
|