mirror of
https://github.com/golang/go
synced 2024-11-08 14:06:20 -07:00
6428a8b437
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>
18 lines
384 B
C
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;
|