Define uintgo for the benefit of Go .swig files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
786d883d45
commit
ab7da898ef
1 changed files with 3 additions and 0 deletions
|
|
@ -16,14 +16,17 @@
|
||||||
#if SWIGGO_INTGO_SIZE == 32
|
#if SWIGGO_INTGO_SIZE == 32
|
||||||
%insert(runtime) %{
|
%insert(runtime) %{
|
||||||
typedef int intgo;
|
typedef int intgo;
|
||||||
|
typedef unsigned int uintgo;
|
||||||
%}
|
%}
|
||||||
#elif SWIGGO_INTGO_SIZE == 64
|
#elif SWIGGO_INTGO_SIZE == 64
|
||||||
%insert(runtime) %{
|
%insert(runtime) %{
|
||||||
typedef long long intgo;
|
typedef long long intgo;
|
||||||
|
typedef unsigned long long uintgo;
|
||||||
%}
|
%}
|
||||||
#else
|
#else
|
||||||
%insert(runtime) %{
|
%insert(runtime) %{
|
||||||
typedef ptrdiff_t intgo;
|
typedef ptrdiff_t intgo;
|
||||||
|
typedef size_t uintgo;
|
||||||
%}
|
%}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue