]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] cmd/cgo: don't give inconsistent typedef error for cgo-define...
authorIan Lance Taylor <iant@golang.org>
Wed, 1 Aug 2018 19:51:19 +0000 (12:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 8 Aug 2018 01:13:46 +0000 (01:13 +0000)
commitb8ae3569c8aa8cb8d569f2941939e30c3d342444
tree0d6835141de62dcb4eb97aeb97edc00fe1e4c4f0
parent097d642de5f0d2010ce877116ff7071d3f19af58
[release-branch.go1.10] cmd/cgo: don't give inconsistent typedef error for cgo-defined types

The cgo tool predefines some C types such as C.uint. Don't give an
error if the type that cgo defines does not match the type in a header file.

Fixes #26743

Change-Id: I9ed3b4c482b558d8ffa8bf61eb3209415b7a9e3c
Reviewed-on: https://go-review.googlesource.com/127356
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
(cherry picked from commit c29370c98ecfc7aa59f32c7a7897e50a0f6eb86b)
Reviewed-on: https://go-review.googlesource.com/128396
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/test/issue26743.go [new file with mode: 0644]
misc/cgo/test/issue26743/a.go [new file with mode: 0644]
misc/cgo/test/issue26743/b.go [new file with mode: 0644]
src/cmd/cgo/main.go