summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-06-09 07:42:52 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-06-09 07:42:52 (GMT)
commit6371cd81775298dfd5dbbffbc172f3e5ddf6b5ea (patch)
tree2e9902bb1fd520e34704bf119e27094542b5814e /Include
parent080b598990aae43b2ee4880d98b1a575fae2a778 (diff)
downloadcpython-6371cd81775298dfd5dbbffbc172f3e5ddf6b5ea.zip
cpython-6371cd81775298dfd5dbbffbc172f3e5ddf6b5ea.tar.gz
cpython-6371cd81775298dfd5dbbffbc172f3e5ddf6b5ea.tar.bz2
Patch #1733960: Allow T_LONGLONG to accept ints.
Will backport to 2.5.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 36d517c..2a29506 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -61,6 +61,9 @@ Used in: PY_LONG_LONG
#ifdef HAVE_LONG_LONG
#ifndef PY_LONG_LONG
#define PY_LONG_LONG long long
+#define PY_LLONG_MIN LLONG_MIN
+#define PY_LLONG_MAX LLONG_MAX
+#define PY_ULLONG_MAX ULLONG_MAX
#endif
#endif /* HAVE_LONG_LONG */