mirror of
https://github.com/golang/go
synced 2024-11-23 17:00:07 -07:00
cmd/cgo: add header guard for boilerplate in export header file
Change-Id: If53563f3477222fe7409011b8780bb0926567251 Reviewed-on: https://go-review.googlesource.com/9767 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
a52dc9fcbd
commit
2bb6f76a05
@ -1325,6 +1325,9 @@ func (p *Package) gccExportHeaderProlog() string {
|
||||
const gccExportHeaderProlog = `
|
||||
/* Start of boilerplate cgo prologue. */
|
||||
|
||||
#ifndef GO_CGO_PROLOGUE_H
|
||||
#define GO_CGO_PROLOGUE_H
|
||||
|
||||
typedef signed char GoInt8;
|
||||
typedef unsigned char GoUint8;
|
||||
typedef short GoInt16;
|
||||
@ -1351,6 +1354,8 @@ typedef void *GoChan;
|
||||
typedef struct { void *t; void *v; } GoInterface;
|
||||
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
|
||||
|
||||
#endif
|
||||
|
||||
/* End of boilerplate cgo prologue. */
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user