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:
Matthias Köppe 2002-12-13 17:24:21 +00:00
commit bce63d09c8
2 changed files with 4 additions and 1 deletions

View file

@ -15,7 +15,9 @@ int g_fooCount = 0;
%inline %{
/* Struct definition */
typedef struct {} Foo;
typedef struct {
int dummy;
} Foo;
/* Make one */
Foo *makeFoo() {

View file

@ -2,6 +2,7 @@
%inline %{
typedef struct Foo {
int dummy;
} Foo;
%}