From 0b3ec0d3e5f2b0b0e379e0a6e51c6e4e4d109b93 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 8 Jul 2002 17:22:24 +0000 Subject: [PATCH] * et_c.awk: Fix up inclusion for windows and mac * et_c.pl: Regenerate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14614 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 6 ++++++ src/util/et/et_c.awk | 6 ++++-- src/util/et/et_c.pl | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 4b767f953..14376b76e 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,9 @@ +2002-07-08 Tom Yu + + * et_c.awk: Fix up inclusion for windows and mac. + + * et_c.pl: Regenerate. + 2002-07-03 Tom Yu * Makefile.in: Fix rebuild rules et_?.perl -> et_?.pl. Also, diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk index 10662b6e5..0305bafc2 100644 --- a/src/util/et/et_c.awk +++ b/src/util/et/et_c.awk @@ -187,9 +187,11 @@ END { 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 " > outfile + print "#else" > outfile print "#include " > 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, " \ diff --git a/src/util/et/et_c.pl b/src/util/et/et_c.pl index fff4a56ff..b512252c6 100644 --- a/src/util/et/et_c.pl +++ b/src/util/et/et_c.pl @@ -241,7 +241,11 @@ line: while (<>) { &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 '); +&Pick('>', $outfile) && + (print $fh '#else'); &Pick('>', $outfile) && (print $fh '#include '); &Pick('>', $outfile) && -- 2.26.2