From: Ingo Krabbe Date: Tue, 21 Jul 2015 10:49:59 +0000 (+0200) Subject: misc/cgo/testsovar: needs the `extern` keyword to export variables on non-windows... X-Git-Tag: go1.5beta3~134 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2e38b3511afd32a6e9cbb97e01da411495427259;p=gostls13.git misc/cgo/testsovar: needs the `extern` keyword to export variables on non-windows platforms Change-Id: I87fa25214fbf24469148a63f4e1e61e261105c16 Reviewed-on: https://go-review.googlesource.com/12470 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/misc/cgo/testsovar/cgoso_c.h b/misc/cgo/testsovar/cgoso_c.h index ab304cdcaa..640db7b396 100644 --- a/misc/cgo/testsovar/cgoso_c.h +++ b/misc/cgo/testsovar/cgoso_c.h @@ -11,7 +11,7 @@ # define VAR __declspec(dllimport) #endif #else -# define VAR +# define VAR extern #endif VAR const char *exported_var;