summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-15 17:26:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:26 -0500
commit84aea6eca58b20f32fad0de0f43d9a5c7de247c9 (patch)
tree0dbffc645c0bc534db8d0efc7642cf27ee2c6049 /source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
parent5555e28cab5ca003f2876be96eb80046116a62c9 (diff)
downloadsamba-84aea6eca58b20f32fad0de0f43d9a5c7de247c9.tar.gz
samba-84aea6eca58b20f32fad0de0f43d9a5c7de247c9.tar.bz2
samba-84aea6eca58b20f32fad0de0f43d9a5c7de247c9.zip
r14455: also add the:
#ifndef FOO #define FOO ... #endif to the client headers metze (This used to be commit c0dd773537bda9980e77eb6eda848161b7df82e5)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
index 60faa78df3..0f3a86e81e 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
@@ -66,6 +66,10 @@ my %done;
sub ParseInterface($)
{
my($interface) = shift;
+
+ $res_hdr .= "#ifndef _HEADER_RPC_$interface->{NAME}\n";
+ $res_hdr .= "#define _HEADER_RPC_$interface->{NAME}\n\n";
+
$res .= "/* $interface->{NAME} - client functions generated by pidl */\n\n";
foreach my $fn (@{$interface->{FUNCTIONS}}) {
@@ -75,6 +79,8 @@ sub ParseInterface($)
$done{$fn->{NAME}} = 1;
}
+ $res_hdr .= "#endif /* _HEADER_RPC_$interface->{NAME} */\n";
+
return $res;
}