From 4d2e9ad7cbd5bede0e377096647e7fa3e416d947 Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 5 Jan 2005 10:30:42 +0000 Subject: Move #include of tclConfig.h to right place. --- ChangeLog | 7 +++++++ generic/tclInt.h | 8 ++++---- generic/tclPort.h | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b0d30a..0276ff2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-05 Donal K. Fellows + + * generic/tclInt.h, generic/tclPort.h: Move the #include of + tclConfig.h *first* before any reference to tcl.h so that the + build configuration is loaded before the first reference to any + system headers. Issue reported by Art Haas on tcl-core. + 2005-01-04 Don Porter * tests/fCmd.test (fCmd-18.10): Added notNetworkFilesystem constraint. diff --git a/generic/tclInt.h b/generic/tclInt.h index 0bd71f0..0338e3f 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInt.h,v 1.209 2004/12/24 18:07:00 msofer Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.210 2005/01/05 10:31:02 dkf Exp $ */ #ifndef _TCLINT @@ -28,12 +28,12 @@ * needed by stdlib.h in some configurations. */ -#ifndef _TCL -#include "tcl.h" -#endif #ifdef HAVE_TCL_CONFIG_H #include "tclConfig.h" #endif +#ifndef _TCL +#include "tcl.h" +#endif #include diff --git a/generic/tclPort.h b/generic/tclPort.h index 3d9af28..730ab76 100644 --- a/generic/tclPort.h +++ b/generic/tclPort.h @@ -10,16 +10,16 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPort.h,v 1.13 2004/11/24 21:37:31 davygrvy Exp $ + * RCS: @(#) $Id: tclPort.h,v 1.14 2005/01/05 10:31:02 dkf Exp $ */ #ifndef _TCLPORT #define _TCLPORT -#include "tcl.h" #ifdef HAVE_TCL_CONFIG_H #include "tclConfig.h" #endif +#include "tcl.h" #if defined(__WIN32__) # include "../win/tclWinPort.h" -- cgit v0.12