Skip to content

Commit 2d87e42

Browse files
committed
Merged revisions 71210 via svnmerge from
svn+ssh://pythondev/python/trunk ........ r71210 | guilherme.polo | 2009-04-04 23:11:19 -0300 (Sat, 04 Apr 2009) | 1 line Include tkinter.h only after including tk.h (or the equivalent for another platform). ........
1 parent 7f587cd commit 2d87e42

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Modules/_tkinter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ Copyright (C) 1994 Steen Lumholt.
3333
#include <windows.h>
3434
#endif
3535

36-
#include "tkinter.h"
37-
3836
/* Allow using this code in Python 2.[12] */
3937
#ifndef PyDoc_STRVAR
4038
#define PyDoc_STRVAR(name,str) static char name[] = str
@@ -69,6 +67,8 @@ Copyright (C) 1994 Steen Lumholt.
6967
#include <tk.h>
7068
#endif
7169

70+
#include "tkinter.h"
71+
7272
/* For Tcl 8.2 and 8.3, CONST* is not defined (except on Cygwin). */
7373
#ifndef CONST84_RETURN
7474
#define CONST84_RETURN

Modules/tkinter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#define TKINTER_H
33

44
/* This header is used to share some macros between _tkinter.c and
5-
* tkappinit.c */
5+
* tkappinit.c.
6+
* Be sure to include tk.h before including this header so
7+
* TK_VERSION_HEX is properly defined. */
68

79
/* TK_RELEASE_LEVEL is always one of the following:
810
* TCL_ALPHA_RELEASE 0

0 commit comments

Comments
 (0)