summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2007-05-30 17:39:23 (GMT)
committerdgp@users.sourceforge.net <dgp>2007-05-30 17:39:23 (GMT)
commit7c78d0f584294fc456b57548f288c73296a163c3 (patch)
tree158317335f6698585b2785872d85666e0a40614d /generic/tk.h
parentcd767826d8537c005d06f8bd28df5744b8b7680c (diff)
downloadtk-7c78d0f584294fc456b57548f288c73296a163c3.zip
tk-7c78d0f584294fc456b57548f288c73296a163c3.tar.gz
tk-7c78d0f584294fc456b57548f288c73296a163c3.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 218b16a..b75f136 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.98 2007/05/18 19:21:58 dgp Exp $
+ * RCS: @(#) $Id: tk.h,v 1.99 2007/05/30 17:39:24 dgp Exp $
*/
#ifndef _TK
#define _TK
+#include <tcl.h>
+#if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION != 5)
+# error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
+#endif
+
/*
* For C++ compilers, use extern "C"
*/
@@ -53,13 +58,6 @@ extern "C" {
#define TK_VERSION "8.5"
#define TK_PATCH_LEVEL "8.5a7"
-#ifndef _TCL
-# include <tcl.h>
-# if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION != 5)
-# error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
-# 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 information.