mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fake bool API for Python 2.2.
This commit is contained in:
parent
89feabc7f5
commit
52ae6f67d9
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ Copyright (C) 1994 Steen Lumholt.
|
||||||
#define PyMODINIT_FUNC void
|
#define PyMODINIT_FUNC void
|
||||||
#endif
|
#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,
|
/* Starting with Tcl 8.4, many APIs offer const-correctness. Unfortunately,
|
||||||
making _tkinter correct for this API means to break earlier
|
making _tkinter correct for this API means to break earlier
|
||||||
versions. USE_COMPAT_CONST allows to make _tkinter work with both 8.4 and
|
versions. USE_COMPAT_CONST allows to make _tkinter work with both 8.4 and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue