summaryrefslogtreecommitdiff
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 09:26:18 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-07 09:26:18 -0700
commit58a260158ae807ba57a7f83d13543907c13bc415 (patch)
tree7758333b632d8fa58af61b1703b6c0954dd89e94 /Include/pyport.h
parent522b4694a5c8636614130374d1f2fff853cc8bd9 (diff)
downloadcpython-58a260158ae807ba57a7f83d13543907c13bc415.tar.gz
replace PY_SIZE_MAX with SIZE_MAX
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 2f780527da..94c135ff61 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -115,16 +115,8 @@ typedef Py_ssize_t Py_ssize_clean_t;
typedef int Py_ssize_clean_t;
#endif
-/* Largest possible value of size_t.
- SIZE_MAX is part of C99, so it might be defined on some
- platforms. If it is not defined, (size_t)-1 is a portable
- definition for C89, due to the way signed->unsigned
- conversion is defined. */
-#ifdef SIZE_MAX
+/* Largest possible value of size_t. */
#define PY_SIZE_MAX SIZE_MAX
-#else
-#define PY_SIZE_MAX ((size_t)-1)
-#endif
/* Largest positive value of type Py_ssize_t. */
#define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1))