[Go] Make -intgosize optional
We no longer support Go < 1.2 so we can default intgo to ptrdiff_t and uintgo to size_t. Fixes #683 Fixes #2233
This commit is contained in:
parent
0c0b93f8e0
commit
2da3815f99
5 changed files with 9 additions and 27 deletions
|
|
@ -178,10 +178,10 @@ swig -go -help
|
|||
<td>-intgosize <s></td>
|
||||
<td>Set the size for the Go type <tt>int</tt>. This controls the size
|
||||
that the C/C++ code expects to see. The <s> argument should
|
||||
be 32 or 64. This option is currently required during the
|
||||
be 32 or 64. This option was required during the
|
||||
transition from Go 1.0 to Go 1.1, as the size of <tt>int</tt> on
|
||||
64-bit x86 systems changes between those releases (from 32 bits to
|
||||
64 bits). In the future the option may become optional, and SWIG
|
||||
64-bit x86 systems changed between those releases (from 32 bits to
|
||||
64 bits). It was made optional in SWIG 4.1.0 and if not specified SWIG
|
||||
will assume that the size of <tt>int</tt> is the size of a C
|
||||
pointer.</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue