From: Russ Cox Date: Sat, 22 May 2010 01:29:18 +0000 (-0700) Subject: roll back 1193046 - fix build X-Git-Tag: weekly.2010-05-27~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=88b308a265c556df1cb4fffd10f3ff5e25a25cb2;p=gostls13.git roll back 1193046 - fix build R=dho CC=golang-dev https://golang.org/cl/1257043 --- diff --git a/src/cmd/cgo/main.go b/src/cmd/cgo/main.go index ac82ae9184..070146c9ac 100644 --- a/src/cmd/cgo/main.go +++ b/src/cmd/cgo/main.go @@ -83,11 +83,6 @@ func main() { // Reset p.Preamble so that we don't end up with conflicting headers / defines p.Preamble = builtinProlog 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 { // Convert C.ulong to C.unsigned long, etc. if expand, ok := expandName[cref.Name]; ok {