Text file misc/cgo/testsovar/testdata/cgoso_c.h
1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ignore 6 7 #ifdef WIN32 8 #if defined(EXPORT_DLL) 9 # define VAR __declspec(dllexport) 10 #elif defined(IMPORT_DLL) 11 # define VAR __declspec(dllimport) 12 #endif 13 #else 14 # define VAR extern 15 #endif 16 17 VAR const char *exported_var; 18