mirror of
https://github.com/golang/go
synced 2024-11-20 08:24:42 -07:00
roll back 1193046 - fix build
R=dho CC=golang-dev https://golang.org/cl/1257043
This commit is contained in:
parent
b94f341bac
commit
88b308a265
@ -83,11 +83,6 @@ func main() {
|
|||||||
// Reset p.Preamble so that we don't end up with conflicting headers / defines
|
// Reset p.Preamble so that we don't end up with conflicting headers / defines
|
||||||
p.Preamble = builtinProlog
|
p.Preamble = builtinProlog
|
||||||
openProg(input, p)
|
openProg(input, p)
|
||||||
|
|
||||||
if len(p.Vardef) == 0 && len(p.Funcdef) == 0 && len(p.Enumdef) == 0 && len(p.Constdef) == 0 {
|
|
||||||
fatal("no C symbols were used in cgo file " + input)
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, cref := range p.Crefs {
|
for _, cref := range p.Crefs {
|
||||||
// Convert C.ulong to C.unsigned long, etc.
|
// Convert C.ulong to C.unsigned long, etc.
|
||||||
if expand, ok := expandName[cref.Name]; ok {
|
if expand, ok := expandName[cref.Name]; ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user