1
0
mirror of https://github.com/golang/go synced 2024-11-08 14:06:20 -07:00
go/misc/cgo/testsovar/cgoso_c.h
Alex Brainman 6428a8b437 cmd/dist: add new misc/cgo/testsovar test
This change reintroduces CL 8523. CL 8523 was reverted because
it broke darwin and netbsd builds. Now that this test is part
of "go tool dist test" command we could skip OSes that fail.

Updates #10360

Change-Id: Iaaeb5b800126492f36415a439c333a218fe4ab67
Reviewed-on: https://go-review.googlesource.com/11119
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-17 02:33:40 +00:00

18 lines
384 B
C

// Copyright 2015 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 ignore
#ifdef WIN32
#if defined(EXPORT_DLL)
# define VAR __declspec(dllexport)
#elif defined(IMPORT_DLL)
# define VAR __declspec(dllimport)
#endif
#else
# define VAR
#endif
VAR const char *exported_var;