From: David Chase Date: Thu, 3 Nov 2016 15:50:14 +0000 (-0400) Subject: runtime/cgo: correct type declaration for Windows X-Git-Tag: go1.8beta1~338 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4141054d19f6d5bcdc448be00a6ce4a4c864d488;p=gostls13.git runtime/cgo: correct type declaration for Windows Newer versions of gcc notice a type mismatch and complain. Fix code to match documented signature in MSDN. Trybots say this still compiles with the older (5.1) version of gcc. Fixes #17771. Change-Id: Ib3fe6f71b40751e1146249e31232da5ac69b9e00 Reviewed-on: https://go-review.googlesource.com/32646 Run-TryBot: David Chase Reviewed-by: Brad Fitzpatrick Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/cgo/gcc_libinit_windows.c b/src/runtime/cgo/gcc_libinit_windows.c index 0824e20ad8..b6f51b3e4d 100644 --- a/src/runtime/cgo/gcc_libinit_windows.c +++ b/src/runtime/cgo/gcc_libinit_windows.c @@ -12,8 +12,8 @@ #include "libcgo.h" -static volatile long runtime_init_once_gate = 0; -static volatile long runtime_init_once_done = 0; +static volatile LONG runtime_init_once_gate = 0; +static volatile LONG runtime_init_once_done = 0; static CRITICAL_SECTION runtime_init_cs;