fix error #1468674 enums + char

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-04-14 08:52:29 +00:00
commit 864e179723
2 changed files with 28 additions and 2 deletions

View file

@ -49,3 +49,27 @@ typedef struct _Foo {
%}
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) iFoo; /* Ruby, wrong constant name */
#ifndef __cplusplus
%inline %{
typedef struct _iFoo
{
enum {
Phoo = +50,
Char = 'a'
} e;
} iFoo;
%}
#else
%inline %{
struct iFoo
{
enum {
Phoo = +50,
Char = 'a'
};
};
%}
#endif