diff options
-rw-r--r-- | source4/build/pidl/header.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index 848ceab9b0..56f3503e5d 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -75,11 +75,17 @@ sub HeaderStruct($$) my($name) = shift; $res .= "\nstruct $name {\n"; $tab_depth++; + my $el_count=0; if (defined $struct->{ELEMENTS}) { foreach my $e (@{$struct->{ELEMENTS}}) { HeaderElement($e); + $el_count++; } } + if ($el_count == 0) { + # some compilers can't handle empty structures + $res .= "\tchar _empty_;\n"; + } $tab_depth--; $res .= "}"; } |