From 4019d0e4243cea82b033e12da75d49f82419f2cd Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 26 Jan 2013 09:57:06 +0800 Subject: runtime: avoid defining the same variable in more than one translation unit For gccgo runtime and Darwin where -fno-common is the default. R=iant, dave CC=golang-dev https://golang.org/cl/7094061 --- src/pkg/runtime/runtime.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 47a7b6e78b..e21c276e17 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -562,15 +562,15 @@ struct Panic */ extern String runtime·emptystring; extern uintptr runtime·zerobase; -G* runtime·allg; -G* runtime·lastg; -M* runtime·allm; +extern G* runtime·allg; +extern G* runtime·lastg; +extern M* runtime·allm; extern int32 runtime·gomaxprocs; extern bool runtime·singleproc; extern uint32 runtime·panicking; extern int32 runtime·gcwaiting; // gc is waiting to run -int8* runtime·goos; -int32 runtime·ncpu; +extern int8* runtime·goos; +extern int32 runtime·ncpu; extern bool runtime·iscgo; extern void (*runtime·sysargs)(int32, uint8**); extern uint32 runtime·maxstring; -- cgit v1.3-5-g9baa