diff options
author | Jeremy Allison <jra@samba.org> | 2009-01-02 11:39:04 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-01-02 11:39:04 -0800 |
commit | 11576353f645d7d7f44a74d27545b946c6175658 (patch) | |
tree | a756a430d3fea82ac8a24144613d5d7e04d163f1 /pidl | |
parent | 2234173220c51c2e37818149ddf41421672904c0 (diff) | |
parent | 268f3e93a4dd66ce43dc53278eff01f801ba5083 (diff) | |
download | samba-11576353f645d7d7f44a74d27545b946c6175658.tar.gz samba-11576353f645d7d7f44a74d27545b946c6175658.tar.bz2 samba-11576353f645d7d7f44a74d27545b946c6175658.zip |
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Header.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Header.pm b/pidl/lib/Parse/Pidl/Samba4/Header.pm index 94e1efbfe4..0411466c82 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Header.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Header.pm @@ -183,14 +183,20 @@ sub HeaderUnion($$;$) return if (not defined($union->{ELEMENTS})); pidl " {\n"; $tab_depth++; + my $needed = 0; foreach my $e (@{$union->{ELEMENTS}}) { if ($e->{TYPE} ne "EMPTY") { if (! defined $done{$e->{NAME}}) { HeaderElement($e); } $done{$e->{NAME}} = 1; + $needed++; } } + if (!$needed) { + # sigh - some compilers don't like empty structures + pidl tabs()."int _dummy_element;\n"; + } $tab_depth--; pidl "}"; |