]> granicus.if.org Git - python/commitdiff
Fake bool API for Python 2.2.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2003 08:26:04 +0000 (08:26 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2003 08:26:04 +0000 (08:26 +0000)
Modules/_tkinter.c

index 100e06f227ff2f0055e3c4852ef9559f4307211a..3cc6bfa911bd8c95ea93aa02f4d0a933921e9e7d 100644 (file)
@@ -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