1
0
mirror of https://github.com/golang/go synced 2024-09-29 22:24:33 -06:00
go/misc/cgo
Ian Lance Taylor f70bd91435 cmd/cgo: use preprocessor macros to avoid prolog redefinitions
Avoid redefinition errors when a Go file uses a cgo comment to
There is no particularly good reason to do this, but there is also no
particularly good reason that it should fail.

Fixes #27019

Change-Id: Icd6f8197a89be4ee6b03ddae675667998a8b4189
Reviewed-on: https://go-review.googlesource.com/c/152079
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-12-01 05:30:16 +00:00
..
errors cmd/cgo: rewrite pointer checking to use more function literals 2018-11-01 21:54:54 +00:00
fortran
gmp
life test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
nocgo
stdio test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
test cmd/cgo: use field alignment when setting field offset 2018-11-29 19:18:12 +00:00
testasan
testcarchive misc/cgo/testcarchive: make the tests work when using gccgo 2018-08-21 15:03:10 +00:00
testcshared cmd/cgo: use preprocessor macros to avoid prolog redefinitions 2018-12-01 05:30:16 +00:00
testgodefs cmd/cgo: don't resolve typedefs in -godefs mode 2018-07-27 16:46:42 +00:00
testplugin all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
testsanitizers misc/cgo/testsanitizers: gofmt 2018-11-16 13:54:47 +00:00
testshared all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
testsigfwd
testso
testsovar
testtls