diff options
author | Jörg Mayer <jmayer@loplof.de> | 2006-03-30 07:44:03 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2006-03-30 07:44:03 +0000 |
commit | 9ba859bacf860117c12778e75bcde2f4634c1133 (patch) | |
tree | 2574eae5508ad72fb7c18837d97d43d64b51280a /tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm | |
parent | e4f01d2051b83f3114cf993ccb33c1f8164b04b2 (diff) |
Update from samba tree revision 13374 to 14805
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============
svn path=/trunk/; revision=17767
Diffstat (limited to 'tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm')
-rw-r--r-- | tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm b/tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm index 3bdb701526..7e597dfb34 100644 --- a/tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm +++ b/tools/pidl/lib/Parse/Pidl/Samba4/TDR.pm @@ -5,6 +5,7 @@ package Parse::Pidl::Samba4::TDR; use Parse::Pidl::Util qw(has_property ParseExpr is_constant); +use Parse::Pidl::Samba4 qw(is_intree choose_header); use vars qw($VERSION); $VERSION = '0.01'; @@ -237,12 +238,21 @@ sub Parser($$$) my ($idl,$hdrname,$baseheader) = @_; $ret = ""; $ret_hdr = ""; pidl "/* autogenerated by pidl */"; - pidl "#include \"includes.h\""; + if (is_intree()) { + pidl "#include \"includes.h\""; + } else { + pidl "#include <stdio.h>"; + pidl "#include <stdlib.h>"; + pidl "#include <stdint.h>"; + pidl "#include <stdarg.h>"; + pidl "#include <string.h>"; + pidl "#include <core/nterr.h>"; + } pidl "#include \"$hdrname\""; pidl ""; pidl_hdr "/* autogenerated by pidl */"; pidl_hdr "#include \"$baseheader\""; - pidl_hdr "#include \"tdr/tdr.h\""; + pidl_hdr choose_header("tdr/tdr.h", "tdr.h"); pidl_hdr ""; foreach (@$idl) { ParserInterface($_) if ($_->{TYPE} eq "INTERFACE"); } |