Empty structs are not portable C.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5ca64ba2d0
commit
bce63d09c8
2 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ int g_fooCount = 0;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
/* Struct definition */
|
/* Struct definition */
|
||||||
typedef struct {} Foo;
|
typedef struct {
|
||||||
|
int dummy;
|
||||||
|
} Foo;
|
||||||
|
|
||||||
/* Make one */
|
/* Make one */
|
||||||
Foo *makeFoo() {
|
Foo *makeFoo() {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
typedef struct Foo {
|
typedef struct Foo {
|
||||||
|
int dummy;
|
||||||
} Foo;
|
} Foo;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue