summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-05-30 17:34:44 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-05-30 17:34:44 (GMT)
commit16cdb2ced634f92926678b51a29c446ecf0a718a (patch)
treef77f601f0302972e210fbf6cb054179f5acaa3a8 /generic/tk.h
parent9ea99939162611ec9a4283bccd83be573e9f5d70 (diff)
downloadtk-16cdb2ced634f92926678b51a29c446ecf0a718a.zip
tk-16cdb2ced634f92926678b51a29c446ecf0a718a.tar.gz
tk-16cdb2ced634f92926678b51a29c446ecf0a718a.tar.bz2
* generic/tk.h: Correct placement of #include <tcl.h> [Bug 1723812].
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 8be88f4..e7ed9d2 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,12 +12,17 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.74.2.18 2007/05/30 14:06:20 dgp Exp $
+ * RCS: @(#) $Id: tk.h,v 1.74.2.19 2007/05/30 17:34:45 dgp Exp $
*/
#ifndef _TK
#define _TK
+#include <tcl.h>
+#if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION != 4)
+# error Tk 8.4 must be compiled with tcl.h from Tcl 8.4
+#endif
+
/*
* For C++ compilers, use extern "C"
*/
@@ -53,13 +58,6 @@ extern "C" {
#define TK_VERSION "8.4"
#define TK_PATCH_LEVEL "8.4.16"
-#ifndef _TCL
-# include <tcl.h>
-# if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION != 4)
-# error Tk 8.4 must be compiled with tcl.h from Tcl 8.4
-# endif
-#endif
-
/*
* A special definition used to allow this header file to be included
* from windows or mac resource files so that they can obtain version