diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-03-30 08:26:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-03-30 08:26:04 (GMT) |
commit | 52ae6f67d9febe937c33866c56a4a448a35dd545 (patch) | |
tree | aaf583b8d651aa0975f630b7c7f84adcf57cbf9e /Modules/_tkinter.c | |
parent | 89feabc7f5308e3190909f47fce225df28a65062 (diff) | |
download | cpython-52ae6f67d9febe937c33866c56a4a448a35dd545.zip cpython-52ae6f67d9febe937c33866c56a4a448a35dd545.tar.gz cpython-52ae6f67d9febe937c33866c56a4a448a35dd545.tar.bz2 |
Fake bool API for Python 2.2.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 100e06f..3cc6bfa 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -46,6 +46,11 @@ Copyright (C) 1994 Steen Lumholt. #define PyMODINIT_FUNC void #endif +#ifndef PyBool_Check +#define PyBool_Check(o) 0 +#define PyBool_FromLong PyInt_FromLong +#endif + /* Starting with Tcl 8.4, many APIs offer const-correctness. Unfortunately, making _tkinter correct for this API means to break earlier versions. USE_COMPAT_CONST allows to make _tkinter work with both 8.4 and |