]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: accept __uint8_t as the uint8_t type
authorIan Lance Taylor <iant@golang.org>
Tue, 19 Mar 2019 13:51:14 +0000 (06:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 19 Mar 2019 14:48:00 +0000 (14:48 +0000)
commit72954ebcfdeb5354e43ed781061d46e48137bfc0
tree0dd7fef25c02739d4bb1c88e2204483cc77ddf47
parentd34548e0b6acc14a99bc6ffc225eedbb56e03d60
cmd/cgo: accept __uint8_t as the uint8_t type

This works around the NetBSD <stdint.h> which defines the type using
"#define" rather than typedef.

Fixes #30918
Updates #29878

Change-Id: I8998eba52139366ae46762bdad5fcae85f9b4027
Reviewed-on: https://go-review.googlesource.com/c/go/+/168337
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/cgo/gcc.go