From 9baeae995f31e23bd116f478c93131015e25e069 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 4 Jun 2004 20:17:09 +0000 Subject: * generic/tcl.h: Restored #include to tcl.h, rejecting the "fix" for "Bug" 945570. Tcl_FSSeek() needs the values of SEEK_SET, etc. and too many extensions rely on tcl.h providing stdio.h for them. --- ChangeLog | 7 +++++++ generic/tcl.h | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9bc2e7b..f1e7204 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-06-04 Don Porter + + * generic/tcl.h: Restored #include to tcl.h, + rejecting the "fix" for "Bug" 945570. Tcl_FSSeek() needs the + values of SEEK_SET, etc. and too many extensions rely on tcl.h + providing stdio.h for them. + 2004-06-02 Jeff Hobbs * win/tclWinFile.c (TclpFindExecutable): when using diff --git a/generic/tcl.h b/generic/tcl.h index cadd278..ccbb453 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tcl.h,v 1.179 2004/05/25 08:37:31 dkf Exp $ + * RCS: @(#) $Id: tcl.h,v 1.180 2004/06/04 20:17:10 dgp Exp $ */ #ifndef _TCL @@ -138,6 +138,17 @@ extern "C" { #endif /* TCL_THREADS */ /* + * Tcl's public routine Tcl_FSSeek() uses the values SEEK_SET, + * SEEK_CUR, and SEEK_END, all #define'd by stdio.h . + * + * Also, many extensions need stdio.h, and they've grown accustomed + * to tcl.h providing it for them rather than #include-ing it themselves + * as they should, so also for their sake, we keep the #include to be + * consistent with prior Tcl releases. + */ +#include + +/* * Definitions that allow Tcl functions with variable numbers of * arguments to be used with either varargs.h or stdarg.h. TCL_VARARGS * is used in procedure prototypes. TCL_VARARGS_DEF is used to declare -- cgit v0.12