summaryrefslogtreecommitdiff
path: root/misc/cgo/test/sleep_windows.go
blob: 007a1bb4c8002c09cbb3aa98bbc37f1b20f95875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2011 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 cgotest

/*
#include <windows.h>

unsigned int sleep(unsigned int seconds) {
	Sleep(1000 * seconds);
	return 0;
}

*/
import "C"