summaryrefslogtreecommitdiff
path: root/misc/cgo/testso/cgoso.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testso/cgoso.c')
-rw-r--r--misc/cgo/testso/cgoso.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/cgo/testso/cgoso.c b/misc/cgo/testso/cgoso.c
new file mode 100644
index 000000000..917f472d3
--- /dev/null
+++ b/misc/cgo/testso/cgoso.c
@@ -0,0 +1,14 @@
+// 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.
+
+#include "_cgo_export.h"
+
+#ifdef WIN32
+extern void setCallback(void *);
+void init() {
+ setCallback(goCallback);
+}
+#else
+void init() {}
+#endif