Skip to content

Commit

Permalink
cmd/cgo: use _Complex in rewritten Go code too
Browse files Browse the repository at this point in the history
Followup to CL 17716, which updated cgo's boilerplate prologue code to
use standard C's _Complex instead of GCC's __complex extension.

Change-Id: I74f29b0cc3d13cab2853441cafbfe77853bba4f9
Reviewed-on: https://go-review.googlesource.com/17820
Run-TryBot: Matthew Dempsky <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
mdempsky authored and ianlancetaylor committed Dec 14, 2015
1 parent 0cbf8d1 commit 6094dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/cgo/gcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ var nameToC = map[string]string{
"ulong": "unsigned long",
"longlong": "long long",
"ulonglong": "unsigned long long",
"complexfloat": "__complex float",
"complexdouble": "__complex double",
"complexfloat": "float _Complex",
"complexdouble": "double _Complex",
}

// cname returns the C name to use for C.s.
Expand Down

0 comments on commit 6094dad

Please sign in to comment.