1
0
mirror of https://github.com/golang/go synced 2024-11-24 15:20:03 -07:00

runtime/cgo: adapt files copied from libcgo

Necessary but not sufficient step toward
making those builds work.

R=r
CC=golang-dev
https://golang.org/cl/3411043
This commit is contained in:
Russ Cox 2010-12-08 16:35:05 -05:00
parent 70113b436e
commit 7eeebf49be
5 changed files with 18 additions and 13 deletions

View File

@ -11,14 +11,11 @@ char *environ[] = { 0 };
char *__progname;
static void
inittls(void)
xinitcgo(void)
{
}
void
initcgo(void)
{
}
void (*initcgo)(void) = xinitcgo;
void
libcgo_sys_thread_start(ThreadStart *ts)

View File

@ -10,11 +10,13 @@ static void* threadentry(void*);
char *environ[] = { 0 };
char *__progname;
void
initcgo(void)
static void
xinitcgo(void)
{
}
void (*initcgo)(void) = xinitcgo;
void
libcgo_sys_thread_start(ThreadStart *ts)
{

View File

@ -4,11 +4,13 @@
#include "libcgo.h"
void
initcgo(void)
static void
xinitcgo(void)
{
}
void (*initcgo)(void) = xinitcgo;
void
libcgo_sys_thread_start(ThreadStart *ts)
{

View File

@ -12,11 +12,13 @@ static void *threadentry(void*);
Allocation granularity on Windows is typically 64 KB. */
#define STACKSIZE (1*1024*1024)
void
initcgo(void)
static void
xinitcgo(void)
{
}
void (*initcgo)(void) = xinitcgo;
void
libcgo_sys_thread_start(ThreadStart *ts)
{

View File

@ -12,11 +12,13 @@ static void *threadentry(void*);
Allocation granularity on Windows is typically 64 KB. */
#define STACKSIZE (2*1024*1024)
void
initcgo(void)
static void
xinitcgo(void)
{
}
void (*initcgo)(void) = xinitcgo;
void
libcgo_sys_thread_start(ThreadStart *ts)
{