]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: add typedef for uintptr in generated headers
authorAndrew Gerrand <adg@golang.org>
Wed, 8 Sep 2010 23:24:53 +0000 (09:24 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 8 Sep 2010 23:24:53 +0000 (09:24 +1000)
Fixes #1046.

R=rsc, iant
CC=golang-dev
https://golang.org/cl/2102043

src/cmd/cgo/out.go

index eb39338684bc1340cec0bac6d7d7ac2d4cb07d3f..18fb34a22ae8f60a67bf52e9dd3e6982e866a8c3 100644 (file)
@@ -631,6 +631,7 @@ typedef unsigned char uchar;
 typedef unsigned short ushort;
 typedef long long int64;
 typedef unsigned long long uint64;
+typedef __SIZE_TYPE__ uintptr;
 
 typedef struct { char *p; int n; } GoString;
 typedef void *GoMap;