diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 22:58:10 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 22:58:10 +0100 |
commit | 97f372003869e8ad1f4e2f673c59f7f0d563346a (patch) | |
tree | a3d46803f85f78a5de385a541641d6edf1553cdc /pidl | |
parent | cc2d1eb743bb5b49b88a6fbdfeeb8730fb8e6189 (diff) | |
download | samba-97f372003869e8ad1f4e2f673c59f7f0d563346a.tar.gz samba-97f372003869e8ad1f4e2f673c59f7f0d563346a.tar.bz2 samba-97f372003869e8ad1f4e2f673c59f7f0d563346a.zip |
Don't write out forward declarations for enums, as some compilers don't
seem to like it.
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Header.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Header.pm b/pidl/lib/Parse/Pidl/Samba4/Header.pm index 611f0adb92..94e1efbfe4 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Header.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Header.pm @@ -226,6 +226,8 @@ sub HeaderType($$$;$) sub HeaderTypedef($;$) { my($typedef,$tail) = @_; + # Don't print empty "enum foo;", since some compilers don't like it. + return if ($typedef->{DATA}->{TYPE} eq "ENUM" and not defined($typedef->{DATA}->{ELEMENTS})); HeaderType($typedef, $typedef->{DATA}, $typedef->{NAME}, $tail) if defined ($typedef->{DATA}); } |