]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: don't give inconsistent typedef error for cgo-defined types
authorIan Lance Taylor <iant@golang.org>
Wed, 1 Aug 2018 19:51:19 +0000 (12:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 1 Aug 2018 20:41:19 +0000 (20:41 +0000)
commitc29370c98ecfc7aa59f32c7a7897e50a0f6eb86b
tree94765a325a7ddbb602cea63bfa1e27a3789194c7
parenta2ef8b9c6c9ca9a84586017514e23ce6b58086bf
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>
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