[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:
Olly Betts 2022-03-16 09:41:11 +13:00
commit 2da3815f99
5 changed files with 9 additions and 27 deletions

View file

@ -24,6 +24,7 @@ static void* Swig_malloc(int c) {
%}
%insert(cgo_comment_typedefs) %{
#include <stddef.h>
#include <stdint.h>
%}