1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:44:41 -07:00

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 <drchase@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
David Chase 2016-11-03 11:50:14 -04:00
parent b89135777b
commit 4141054d19

View File

@ -12,8 +12,8 @@
#include "libcgo.h" #include "libcgo.h"
static volatile long runtime_init_once_gate = 0; static volatile LONG runtime_init_once_gate = 0;
static volatile long runtime_init_once_done = 0; static volatile LONG runtime_init_once_done = 0;
static CRITICAL_SECTION runtime_init_cs; static CRITICAL_SECTION runtime_init_cs;