diff options
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index efcb0f6ea4..e89ce3268a 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2237,11 +2237,6 @@ sub HeaderInterface($) my $count = 0; - pidl_hdr "#ifndef _HEADER_RPC_$interface->{NAME}"; - pidl_hdr "#define _HEADER_RPC_$interface->{NAME}"; - - pidl_hdr ""; - if (defined $interface->{PROPERTIES}->{depends}) { my @d = split / /, $interface->{PROPERTIES}->{depends}; foreach my $i (@d) { @@ -2293,7 +2288,6 @@ sub HeaderInterface($) pidl_hdr "#define DCERPC_" . uc $interface->{NAME} . "_CALL_COUNT ($val)"; - pidl_hdr "#endif /* _HEADER_RPC_$interface->{NAME} */"; } ##################################################################### @@ -2302,6 +2296,11 @@ sub ParseInterface($$) { my($interface,$needed) = @_; + pidl_hdr "#ifndef _HEADER_RPC_$interface->{NAME}"; + pidl_hdr "#define _HEADER_RPC_$interface->{NAME}"; + + pidl_hdr ""; + HeaderInterface($interface); # Typedefs @@ -2329,6 +2328,8 @@ sub ParseInterface($$) } FunctionTable($interface); + + pidl_hdr "#endif /* _HEADER_RPC_$interface->{NAME} */"; } ##################################################################### @@ -2422,4 +2423,3 @@ sub NeededInterface($$) } 1; - |