diff options
Diffstat (limited to 'source3/script')
-rw-r--r-- | source3/script/mkproto.awk | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk index a8c807a10c..0b9c1f784e 100644 --- a/source3/script/mkproto.awk +++ b/source3/script/mkproto.awk @@ -23,10 +23,6 @@ END { print "/*The following definitions come from ",FILENAME," */" print "" current_file=FILENAME -# if (current_file=="ldap.c") { -# print "#ifdef USE_LDAP" -# use_ldap_define = 1; -# } } if (inheader) { if (match($0,"[)][ \t]*$")) { @@ -39,6 +35,20 @@ END { } } +# special handling for code merge of TNG to head +/^#define OLD_NTDOMAIN 1/ { + printf "#if OLD_NTDOMAIN\n" +} +/^#undef OLD_NTDOMAIN/ { + printf "#endif\n" +} +/^#define NEW_NTDOMAIN 1/ { + printf "#if NEW_NTDOMAIN\n" +} +/^#undef NEW_NTDOMAIN/ { + printf "#endif\n" +} + # we handle the loadparm.c fns separately /^FN_LOCAL_BOOL/ { |