summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-01-05 10:30:42 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-01-05 10:30:42 (GMT)
commit4d2e9ad7cbd5bede0e377096647e7fa3e416d947 (patch)
treec86daae70b778ebe737a82ea03399995aad9e8fa
parentfe45b2a86358226f096018ea4020d87e596136bd (diff)
downloadtcl-4d2e9ad7cbd5bede0e377096647e7fa3e416d947.zip
tcl-4d2e9ad7cbd5bede0e377096647e7fa3e416d947.tar.gz
tcl-4d2e9ad7cbd5bede0e377096647e7fa3e416d947.tar.bz2
Move #include of tclConfig.h to right place.
-rw-r--r--ChangeLog7
-rw-r--r--generic/tclInt.h8
-rw-r--r--generic/tclPort.h4
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 <donal.k.fellows@man.ac.uk>
+
+ * 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 <dgp@users.sourceforge.net>
* 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 <stdio.h>
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"