From: Ian Lance Taylor Date: Fri, 11 Dec 2015 03:38:14 +0000 (-0800) Subject: cmd/cgo: use standard C syntax for complex types X-Git-Tag: go1.6beta1~101 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=91c3cae83af4f56d0d38a61f020c2c6e09d6f4c6;p=gostls13.git cmd/cgo: use standard C syntax for complex types (instead of using a GCC extension). Change-Id: I110dc45bfe5f1377fe3453070eccde283b5cc161 Reviewed-on: https://go-review.googlesource.com/17716 Reviewed-by: Russ Cox --- diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go index 8aca64a874..3c292e7898 100644 --- a/src/cmd/cgo/out.go +++ b/src/cmd/cgo/out.go @@ -1420,8 +1420,8 @@ typedef GoUintGOINTBITS GoUint; typedef __SIZE_TYPE__ GoUintptr; typedef float GoFloat32; typedef double GoFloat64; -typedef __complex float GoComplex64; -typedef __complex double GoComplex128; +typedef float _Complex GoComplex64; +typedef double _Complex GoComplex128; /* static assertion to make sure the file is being used on architecture