+2002-07-08 Tom Yu <tlyu@mit.edu>
+
+ * et_c.awk: Fix up <com_err.h> inclusion for windows and mac.
+
+ * et_c.pl: Regenerate.
+
2002-07-03 Tom Yu <tlyu@mit.edu>
* Makefile.in: Fix rebuild rules et_?.perl -> et_?.pl. Also,
print " 0" > outfile
print "};" > outfile
print "" > outfile
- print "#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))" > outfile
+ print "#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))" > outfile
+ print "#include <KerberosComErr/KerberosComErr.h>" > outfile
+ print "#else" > outfile
print "#include <com_err.h>" > outfile
- print "#endif" > outfile
+ print "#endif" > outfile
print "" > outfile
if (tab_base_high == 0) {
print "const struct error_table et_" table_name "_error_table = { text, " \
&Pick('>', $outfile) &&
(print $fh
- '#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))');
+ '#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))');
+&Pick('>', $outfile) &&
+ (print $fh '#include <KerberosComErr/KerberosComErr.h>');
+&Pick('>', $outfile) &&
+ (print $fh '#else');
&Pick('>', $outfile) &&
(print $fh '#include <com_err.h>');
&Pick('>', $outfile) &&