aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-01-26 09:57:06 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-01-26 09:57:06 +0800
commit4019d0e4243cea82b033e12da75d49f82419f2cd (patch)
tree0af9218a0f630a87cb5fc5fec84411fbd8b4cdc3 /src/pkg/runtime/runtime.h
parent5a49acc72fd41a8a9b02ac9f4e4c9c41d1bf8c42 (diff)
downloadgo-4019d0e4243cea82b033e12da75d49f82419f2cd.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h10
1 files changed, 5 insertions, 5 deletions
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;