1
0
mirror of https://github.com/golang/go synced 2024-11-18 00:54:45 -07:00

runtime/cgo: export symbols in both internal and external link mode

R=rsc, r
CC=golang-dev
https://golang.org/cl/9060045
This commit is contained in:
Ian Lance Taylor 2013-05-01 14:30:51 -07:00
parent a555758909
commit 9de38d6788

View File

@ -45,7 +45,8 @@ _cgo_allocate_internal(uintptr len, byte *ret)
FLUSH(&ret);
}
#pragma dynexport _cgo_allocate _cgo_allocate
#pragma cgo_export_static _cgo_allocate
#pragma cgo_export_dynamic _cgo_allocate
void
_cgo_allocate(void *a, int32 n)
{
@ -73,7 +74,8 @@ _cgo_panic_internal(byte *p)
runtime·panic(err);
}
#pragma dynexport _cgo_panic _cgo_panic
#pragma cgo_export_static _cgo_panic
#pragma cgo_export_dynamic _cgo_panic
void
_cgo_panic(void *a, int32 n)
{