Kaydet (Commit) 5d64c330 authored tarafından Guilherme Polo's avatar Guilherme Polo

Include tkinter.h only after including tk.h (or the equivalent for another platform).

üst 37d89a29
...@@ -33,8 +33,6 @@ Copyright (C) 1994 Steen Lumholt. ...@@ -33,8 +33,6 @@ Copyright (C) 1994 Steen Lumholt.
#include <windows.h> #include <windows.h>
#endif #endif
#include "tkinter.h"
/* Allow using this code in Python 2.[12] */ /* Allow using this code in Python 2.[12] */
#ifndef PyDoc_STRVAR #ifndef PyDoc_STRVAR
#define PyDoc_STRVAR(name,str) static char name[] = str #define PyDoc_STRVAR(name,str) static char name[] = str
...@@ -69,6 +67,8 @@ Copyright (C) 1994 Steen Lumholt. ...@@ -69,6 +67,8 @@ Copyright (C) 1994 Steen Lumholt.
#include <tk.h> #include <tk.h>
#endif #endif
#include "tkinter.h"
/* For Tcl 8.2 and 8.3, CONST* is not defined (except on Cygwin). */ /* For Tcl 8.2 and 8.3, CONST* is not defined (except on Cygwin). */
#ifndef CONST84_RETURN #ifndef CONST84_RETURN
#define CONST84_RETURN #define CONST84_RETURN
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
#define TKINTER_H #define TKINTER_H
/* This header is used to share some macros between _tkinter.c and /* This header is used to share some macros between _tkinter.c and
* tkappinit.c */ * tkappinit.c.
* Be sure to include tk.h before including this header so
* TK_VERSION_HEX is properly defined. */
/* TK_RELEASE_LEVEL is always one of the following: /* TK_RELEASE_LEVEL is always one of the following:
* TCL_ALPHA_RELEASE 0 * TCL_ALPHA_RELEASE 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment