]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: use standard C syntax for complex types
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Dec 2015 03:38:14 +0000 (19:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Dec 2015 18:15:32 +0000 (18:15 +0000)
(instead of using a GCC extension).

Change-Id: I110dc45bfe5f1377fe3453070eccde283b5cc161
Reviewed-on: https://go-review.googlesource.com/17716
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/cgo/out.go

index 8aca64a874ab485448a9ecc4f4fc5b469bf639df..3c292e7898f35766c10ebfa2d635abcec11254f6 100644 (file)
@@ -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